[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: Mike Harris <GENIE_at_prodigy.net>
Date: 2005-04-26 20:03:59 CEST

Ben Collins-Sussman wrote:

>
> 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.
>
>
Thank you very much, I did not realize switch behaved this way. I have
read that part of the SVN Book, and had not interpreted it as saying
that switch will preserve local mods. Makes things a great deal
easier. Thanks again.

P.S. I apologize for posting to Dev. I accidentaly copied the wrong
e-mail address ..... and I guess I aplogize for AGAIN posting to Dev,
but this seems to be where discussion has occured (I posted to users 5
minutes after my original posting to Dev).

Mike Harris

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Apr 26 20:05:49 2005

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