views:

531

answers:

2

I have a repository where in revision 1 the folders trunk, branches and tags were added. The source was kept in trunk. Revision 7 happened, and development continued up to revision 16. Now I have to continue to work on revision 7, so I want to create a branch off of revision 7.

Here is how I tried to do this: Using TortoiseSVN, I select trunk in the repository browser, open "Show log", select revision 7 and right-click "Create branch/tag from revision". The Copy (Branch / Tag) dialog appears with FROM-URL set to trunk and I enter .../branches/new_branch_name as the To-URL. "Specific revision in repository" is checked and set to 7.

Now I get an error saying "Path ...../trunk does not exist in revision 7". But trunk was definitely created in revision 1 and if I look at the changed files of revision 7 in the "Show log" dialog, I can see that the files are added/modified in trunk.

What am I doing wrong?

+1  A: 

I found a solution:

  • Check out old revision
  • from your working copy, create a branch

It seems that this must be done using a working copy and not directly in the repository (browser).

Holgerwa
+2  A: 
  • Open the repository browser.
  • Go to the root directory of the repository.
  • Click the "revision" button (it says "HEAD") and from the dialogue select the revision in question
  • Right drag-and-drop the "trunk" directory to the "branches" directory and select "Copy and rename item to here".
  • Type in the name of the new directory.
  • Write a log message.
Milen A. Radev
Thanks a lot, that is exactly what I need!
Holgerwa