[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: Mark Phippard <MarkP_at_softlanding.com>
Date: 2005-04-26 19:22:01 CEST

Mike Harris <GENIE@prodigy.net> wrote on 04/26/2005 12:10:09 PM:

> Here's my situation. I have made changes to my working copy of our
> trunk. After making a week's worth of changes, I now need to shelve the

> changes and move on to something else. What I want to do is check these

> changes into a branch, but my working copy points to the trunk. What is

> the best way to accomplish this? There are a couple ways I know of to
> do it, but they seem sub-optimal.
> 1. I could create the branch of trunk, check out a working copy, then
> copy the modified files into the branch working copy and check it in
> 2. I don't think this even works, but I could relocate (switch
> --relocate) my WC from trunk to the new branch and check in. This would

> be great, but I don't believe relocate can be used in this fashion.
> Any suggestions would be appreciated. Thank you.

This should have gone to the users@ list, it isn't a dev question.

I think you can just do:

svn copy WC URL

To create a branch from your WC. I think that will also put your changes
on the branch you created. If it doesn't, then just follow that command
with these commands:

svn switch URL

svn commit

Note that you do NOT want to use --relocate on the switch command. That
option is reserved solely for the case where the root URL of your
repository changes, such as when you move to a new server. Otherwise, the
svn switch command without that option is meant for what you are doing, to
"cheaply" switch your WC so that it is working on a different location in
the repository.


Scanned for SoftLanding Systems, Inc. by IBM Email Security Management Services powered by MessageLabs.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Apr 26 19:25:34 2005

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.