5

I'm attempting to create a branch in one of my subversion repositories and keep running into an error. No mater what is done, I keep getting the following:

File not found: transaction '3062-2e6', path '/Software/XXXXXX/branches/testbranch'

I've noticed that the first part of the '3063-3e6' in the above message is the last successful committed revision in the repository. My apache logs don't give much more information:

[Wed Nov 24 14:10:38 2010] [error] [client x.x.x.x] Could not MOVE/COPY /svn/p070361/!svn/bc/3049/Software/SXXXXXX/trunk.  [404, #0]
[Wed Nov 24 14:10:38 2010] [error] [client x.x.x.x] Unable to make a filesystem copy.  [404, #160013]
[Wed Nov 24 14:10:38 2010] [error] [client x.x.x.x] File not found: transaction '3059-2e2', path '/Software/XXXXXX/branches/testbranch'  [404, #160013]

This is all happening on a server with an nginx frontend that proxies to Apache for the subversion bits. Other repositories are able to branch fine and I was able to create the branch using file:/// from the command line on the server this is occurring on. The permissions on this repository match every other repository and disk space is not an issue.

  • It sounds an awful lot like your repo is corrupted. – Avery Payne Nov 25 '10 at 0:44
  • I thought that at first as well, but an svn copy from the command line using file:/// worked just fine. – Steve Platz Nov 26 '10 at 15:44
  • I've narrowed it down to spaces in the directory path. Sometimes the XXXXX in the path above contains spaces. In those cases, I see the error above. If the path does not contain spaces, no error occurs. This will most likely require some reconfiguration of the Nginx front-end, which will be tried after hours. – Steve Platz Nov 29 '10 at 15:04
9

Probably your svn structure has no "Software/XXXXXX/branches" directory, it must exists in order to create "testbranch" here. You should make this directory ("branches") by hands and then do a branch.

| improve this answer | |
7

This unhelpful error message can occur if subdirectories on the destination path do not yet exist. Whilst you can manually create them (with svn mkdir) it is easier to use the --parents option.

    svn cp ^/trunk/bigproject ^/branches/experimental/bigproject -m 'test branch'

If branches or experimental did not exist then command would fail. This should work:

    svn cp --parents ^/trunk/bigproject ^/branches/experimental/bigproject -m 'test branch'
| improve this answer | |
  • if you carelessly use -parents(just one -), there maybe this error: svn: E200007: Cannot mix repository and working copy sources – zhuguowei Jul 4 '16 at 4:23
-1

I know that this is not the direct answer to your problems, but if you want to work with branches effectivly you should consider using other version control systems like git, mercurial or bazzar.

Or if you don't want to make the full migration, you can use git-svn was a "front-end" of your svn repository, i recommend you to read this to know more about git-svn.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.