Create SVN branch from changes in the trunk

I am in a stupid situation: I made some changes to the working copy of TRUNK. Since the changes were not tested, I would like to transfer all changes to the branch. According to the Tortoise manual, Switch will lose all my modifications. Is there a way to save my changes in a working copy and save them in a branch in the repository.

+6
branch svn trunk tortoisesvn
source share
4 answers

Create a branch from a working copy instead of a repository. This way you will not lose noting

+13
source share

If I understand the problem correctly, you are working on a copy that you checked TRUNK but you have not made any changes yet.

In this case, it is easy to solve this problem:

  • Create a TRUNK branch: svn cp <base URL> <new branch URL>
  • Switch to the new branch (above <new branch URL> )
  • Your working copy should now point to <new branch URL>
  • Commit your changes.

Since you did nothing for TRUNK , the TRUNK project version is left unchanged.

+8
source share

Not directly. But you can make a patch, then switch and lose your changes, and then apply the patch to your branch.

Rich click on your working folder with the largest folder, select Tortoise SVN> Create Patch. Select the files to include (usually all changes) and save them somewhere.

Then switch.

Then richt-click on the working copy again (which now points to the branch) and select Tortoise SVN> Apply Patch. You will get a menu in which you can right-click and choose apply all. Save the changes and you should be fine.

0
source share

Create a patch for the changes, and then apply them to any branch or working copy that you like.

0
source share

All Articles