fin
fin

Reputation: 1303

How to Replace a Trunk with a Branch using TortoiseSVN?

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

Upvotes: 12

Views: 13898

Answers (2)

syamimi
syamimi

Reputation: 183

From Tortoise svn, You can go to trunk, right click and select Copy to.

then, it will ask the url. So, you can put your branch url there.

Upvotes: 1

Leo Chapiro
Leo Chapiro

Reputation: 13984

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!

Upvotes: 10

Related Questions