SVN, how to check the code on a specific branch when I checked the code from the trunk?

I need to check my code changes on a specific branch, but I'm not sure how to do this, since my code is with trunk = /

+4
source share
7 answers
  cd workingcopy
 svn checkout http://my.repos.com/path/to/trunk
 # make your edits
 svn switch http://my.repos.com/path/to/branch
 svn commit

Your working copy now points to a branch instead of a trunk. You can also check the branch as a separate working copy, and then drag it into it.

+16
source

Using the switch allows you to change the exit from one place of the repository to another, for example, to a trunk to a branch.

Then you can commit the changes to the branch.

Using TortoiseSVN, you can complete the Switch by doing the following:

  • Right-click on the directory you want to switch about.
  • Choose TortoiseSVN | Switch
  • Change the repository location from current to new.

Documentation for this can be found here .

+4
source

You must have a working copy of the branch for which you want to make a deal. So check it in a separate directory or use svn switch .

+1
source

In addition to switching, you can also create a patch.

http://ariejan.net/2007/07/03/how-to-create-and-apply-a-patch-with-subversion/

+1
source

I'm not sure about the exact location, but it might be an idea to merge the changes into a branch.

+1
source

I'm not sure about the exact location, but the idea may be to merge the changes into a branch

or

You must have a working copy of the branch for which you want to make a deal. So check it in a separate directory or use the svn switch.

+1
source

Ok, I found a way to do this. Check the branch, copy the code changes and try again from the posted branch =]

0
source

All Articles