Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to create branches on Subversion repository using TortoiseSVN

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
like image 773
cbp Avatar asked Jan 22 '14 06:01

cbp


People also ask

Does TortoiseSVN include Subversion?

TortoiseSVN is a really easy to use Revision control / version control / source control software for Windows. It is based on Apache™ Subversion (SVN)®; TortoiseSVN provides a nice and easy user interface for Subversion.

Does svn support branching?

Subversion Branching StrategiesSubversion branches (SVN branches) allow your team to work on multiple versions of your code simultaneously. Developers can test out new features without impacting the rest of development with errors and bugs. SVN's “branch” directory runs parallel to the “trunk” directory.

How do I branch in svn?

Creating a branch is simple. All you need to do is make a copy of your project using "svn copy". This command will require the URL of your project's /trunk directory as well as the URL of the directory where you want to create your branch. This location will virtually always be inside of your /branches directory.

How do I create a branch in TortoiseSVN?

Create a repository branch In Windows Explorer, select the trunk project folder (RouteOptimizer2010 in this example) from which you would like to branch, right-click and select ‘TortoiseSVN’ > ‘Branch/tag…’.

How to create an unversioned SVN repository?

The TortoiseSVN menu for unversioned folders Open the windows explorer Create a new folder and name it e.g. SVNRepository Right clickon the newly created folder and select TortoiseSVN→ Create Repository here.... A repository is then created inside the new folder.

How do I branch a project in SVN?

Right click on your branch project folder and select ‘SVN Checkout’. Select the ‘URL of repository’ to be the new branch location and select the checkout directory to be the new branched project folder you created, as shown in the following screenshot.

What is the difference between subversion and TortoiseSVN?

The Subversion and TortoiseSVN projects appear at the same host address, but are completely separate repositories allowing independent development, and no confusion over build numbers. Of course, you're free to ignore these common layouts. You can create any sort of variation, whatever works best for you or your team.


1 Answers

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.

like image 192
cbp Avatar answered Oct 16 '22 09:10

cbp