Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Replace a Trunk with a Branch using TortoiseSVN?

Is it possible to replace the trunk with a branch using TortoiseSVN?

like image 986
fin Avatar asked Apr 15 '13 15:04

fin


People also ask

How do I branch with TortoiseSVN?

Creating Branches in TortoiseSVN To create a branch with TortoiseSVN, select the folder in your working copy which you want to copy to a branch or tag, then right-click and select the command TortoiseSVN → Branch/Tag....

How do I switch to a branch in svn?

If you're currently inside the directory vendors , which was branched to vendors-with-fix , and you'd like to switch your working copy to that branch: $ svn switch http://svn.red-bean.com/repos/branches/vendors-with-fix . U myproj/foo. txt U myproj/bar.

Does svn support branching?

Subversion Branching StrategiesSubversion branches (SVN branches) allow your team to work on multiple versions of your code simultaneously. Developers can test out new features without impacting the rest of development with errors and bugs. SVN's “branch” directory runs parallel to the “trunk” directory.


1 Answers

Move the current trunk to some other place (/branch/oldtrunk), then move /branch/mybranch to /trunk, then move /branch/oldtrunk to /branch

With the command line client, this can be done with:

svn mv http://path/to/repo/trunk http://path/to/repo/branch/oldtrunk
svn mv http://path/to/repo/branch/mybranch http://path/to/repo/trunk
svn mv http://path/to/repo/branch/oldtrunk http://path/to/repo/branch/mybranch

Good luck!

like image 78
Leo Chapiro Avatar answered Oct 19 '22 17:10

Leo Chapiro