Creating a Subversion branch

I have a Subversion repository (running SVN 1.6.6) on an Ubuntu Linux server, and I’m trying to create a branch using the TortoiseSVN GUI; However, I get an error back:

COPY c:\work\repositoryWorkingcopy\ to http://svnserver/svn/repository/Oct13, Revision HEAD

path not found

I logged into my Linux box to see if the “branches” folder was NOT available. However, I could see that /var/svn/repository/branches existed.

So, what’s the problem and how do I fix it?

I tried the following command (as per as well as from the command line and got a similar error:

c:\workingcopy> svn copy http://reposerver/svn/repository/ http://reposerver/svn/repository/branches/BFI_Oct13/ -m "Creating a branch"

svn: ‘/svn/repository/!svn/bc/235/branches’ path not found

What should I do?

Also, svn info on the main directory of the working copy gives the following information.

Path: .
URL: http://reposerver/svn/myrepository
Repository Root: http://reposerver/svn/myrepository
Repository UUID: 7a31d3c0-b288-4695-aecd-3f9dda2861ab
Revision: 235
Node Kind: directory
Schedule: normal
Last Changed Author: anjan
Last Changed Rev: 235
Last Changed Date: 2010-10-13 20:39:31 +0530 (Wed, 13 Oct 2010)

  • HG Convert on SVN gives “does not look like a Subversion Repository”
  • Merge two branches using tortoise SVN
  • Error “can't use subversion command line client : svn” when opening android project checked out from svn
  • How to handle this situation in Version Control System better?
  • Is there a way to make TortoiseSVN temporarily ignore versioned files?
  • SVN move single directory into other repository (with history)
  • Tortoise SVN : How to ignore bin contents from commit
  • Problem trying to relocate WC to new repository
  • 2 Solutions collect form web for “Creating a Subversion branch”

    When you say:

    I logged into my Linux box to see if the “branches” folder was NOT available. However, I could see that /var/svn/repository/branches existed.

    Do you mean that the actual directory exists in the filesystem (which will do you absolutely no good), or that it exists in the repository?

    Possible fix:

    $ svn mkdir http://reposerver/svn/repository/branches
    $ svn copy http://reposerver/svn/repository/ http://reposerver/svn/repository/branches/BFI_`date +%b%d`/ -m "Creating a branch"

    Generally speaking, you’ll want to branch on the server, make your changes in the branch, and check those changes in.

    So, the first step is to create the branch, which is just a copy command. In TortoiseSVN, you need the URL to (presumably) the trunk, and you’ll need to define the URL of the branch. In a more standard repository setup, the trunk might be http://svnserver/svn/repository/trunk and your branch might be http://svnserver/svn/repository/branches/Oct13.

    Then, you’ll want to switch your working copy to the branch. You should have the option to do so without losing your local changes.

    Finally, you would check your changes in, and they should go to the branch from there.

    I’m more accustomed to the command-line interface for SVN, but I have used TortoiseSVN. It’s been a while, though, so leave a comment if you still have trouble or this doesn’t make sense.

    Git Baby is a git and github fan, let's start git clone.