[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Question: Best way to branch after changes have already been made

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2005-04-26 19:27:03 CEST

On Apr 26, 2005, at 12:19 PM, Josh Siegel wrote:

>
> You can copy directly from your working area to a branch and it will
> "do the right thing" including grabbing all your local mods
>
> go to the root and do a
>
> "svn copy . http://foo/branches/shelf"
>

Nothing so complex is needed:

Create the branch:

    'svn cp trunkURL branchURL'

Then switch your working copy to it:

    'svn switch branchURL'

Your local mods will be preserved. When you 'svn commit', all changes
will go to the branch.

This very example is discussed in chapter 4, in fact.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Apr 26 19:33:07 2005

This is an archived mail posted to the Subversion Dev mailing list.