I am trying to make a branch with Subversion. The method the book describes is not working. I found this link in this post, but it merely mirrors the book. And this technique fails. Perhaps I did something wrong?
I used the svn copy
command from my working directory to create a branch:
svn copy https://server.com/svn/iRP85_V2/trunk https://server.com/svn/iERP85_V2/branches/backlog -m "comment"
This seemed to work. Then following the instructions, I used the checkout
command to change the code in my working copy:
svn checkout https://server.com/svn/iERP85_V2/branches/backlog
It looks like it copies everything over, but I am not sure what it is really doing. I make a change then do another checkout:
svn checkout https://server.com/svn/iERP85_V2/trunk
But I don't get the original without the change. I get the same code. If I checkout again from the branch I get the same code again.
Issuing the svn info
command I see that I am always in trunk no matter what I pass to checkout. This command obviously does not do what the book implies. It does not change the source for working directories. It does not even replace modules in the working directory from the target specified in the parameter. What does it do?
Then I looked further and saw the switch command so I tried this:
svn switch https://server.com/svn/iERP85_V2/branches/backlog
And I get an error:
svn: E155025: 'https://server.com/svn/iERP85_v2/trunk' is not the same repository as 'https://server.com/svn/iERP85_V2'
If I issue a couple of info commands the repository id is the same.
G:\Code\Intuitive Projects\Projects>svn info
Path: .
Working Copy Root Path: G:\Code\Intuitive Projects\Projects
URL: https://server.com/svn/iERP85_v2/trunk
Repository Root: https://server.com/svn/iERP85_v2
Repository UUID: b4595441-a089-b54f-bc08-6f65ce278a35
Revision: 48
Node Kind: directory
Schedule: normal
Last Changed Author: JohnM
Last Changed Rev: 48
Last Changed Date: 2013-05-16 13:35:06 -0400 (Thu, 16 May 2013)
G:\Code\Intuitive Projects\Projects>svn info https://server.com/svn/iERP85_V2/branches/backlog
Path: backlog
URL: https://server.com/svn/iERP85_V2/branches/backlog
Repository Root: https://server.com/svn/iERP85_V2
Repository UUID: b4595441-a089-b54f-bc08-6f65ce278a35
Revision: 57
Node Kind: directory
Last Changed Author: JohnM
Last Changed Rev: 57
Last Changed Date: 2013-05-20 13:00:38 -0400 (Mon, 20 May 2013)
I even deleted the branch and recreated it in case I did something, but I get the same result.
I've been developing on the trunk and would like to use the branching feature. Especially when bugs are found, and I have to either tell people they must wait or selectively choosing what modules to put into production.