Unable to create branches on Subversion repository using TortoiseSVN

svntortoisesvn

I have pulled down a completely fresh checkout of our Subversion repository. Next I right click on the working folder and select "Branch/Tag". I give the branch a name, and select to have the copy made from my working copy. I also select to switch the working copy to the new branch.

When I click OK, I receive the following error:

Commit failed (details follow): 
Directory 'C:\Projects\StrattonWF_2' is out of date
File not found: transaction '8877-59x', path 
'/branches/foo/bar/'
You have to update your working copy first.

However, following the instructions in the error message and updating the working copy does not help – the error keeps happening.

This is only happening on my workstation – noone else has this issue. I can also do commits to the trunk fine. Like I said, I have pulled down a completely fresh copy of the trunk.

What else can I try?

The relevant version numbers are:

  • TortoiseSVN 1.8.4
  • Subversion 1.8.5
  • Client operating system: Windows XP

Best Answer

I figured this out: I was trying to create a branch with two folders in the path, i.e. /branches/foo/bar/. The operation failed because the first subfolder didn't exist.

There is actually an option at the bottom of the branch options window in TortoiseSVN's called "Create intermediate folders" which defaults to off. I guess that makes sense now.

It would be nice if TortoiseSVN provided a more helpful error message.