Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SVN branching with local modifications

I've been doing some minor fixes on the trunk, but I am wishing I would have branched out for what I'm doing now. What's the easiest way to do this in Tortoise SVN now?

I'm thinking that this is what the "Working Copy" option is for when branching, but I see the following explanation:

Working copy - The new branch is an identical copy of your local working copy. If you have updated some files to an older revision in your WC, or if you have made local changes, that is exactly what goes into the copy. Naturally this sort of complex tag may involve transferring data from your WC back to the repository if it does not exist there already.

and it makes me wonder if the part in bold is referring to updating the trunk or the new branch you're about to create. I would think the latter but just wanted to check before I do it. Or if there's another way I should do this please let me know. Thanks!

like image 318
Brandon Moore Avatar asked Nov 18 '11 23:11

Brandon Moore


People also ask

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.

How do I merge two svn revisions?

If you want to merge changes into a branch, you have to have a working copy for that branch checked out, and invoke the merge wizard from that working copy using TortoiseSVN → Merge.... In general it is a good idea to perform a merge into an unmodified working copy.


1 Answers

Yes, Working Copy is exactly the option you want. The transferring of data it is referring to is for the new branch, not the trunk (i.e. you may have added new files locally that don't yet exist in the repository - they will be added to the branch).

like image 171
Marty Avatar answered Sep 23 '22 17:09

Marty