Create a Subversion branch from an already modified trunk working copy

993 Views Asked by At

There's a situation that I create a working copy from Subversion's trunk.

I then go changing things. Onoly ffter some changes have been made, I decide I wanna stage the work and do multiple commits over it.

But I don't want this work to be inside trunk just yet. I wanna create a branch for it, do some commits, then merge it into branch.

But that working copy was created over trunk, and changes have already happened and are urging to be commited.

How can I create a new branch and turn that working copy's changes to it?

I use CollabNet and VisualSVN and Tortoise.

2

There are 2 best solutions below

3
On

Go to your working copy folder, then right click.. from there you will see:

TortoiseSVN > Branch/Tag

After you click the branch/tag , there is option there named "Working copy" under "Create copy in the repository from:"

with that you can create a new branch of your working copy including the changes you made.

Regards.

0
On

If you create the branch normally as if you had not made any changes, then "switch" to the new branch (TortoiseSVN has a nice checkbox in the branch dialog to do this automatically), all your local (uncommitted) changes will come along for the ride and you can commit them whenever you want on the new branch.