Reputation: 2126
The folder structure is as follows :
/home/src/repositories/svntest/branches
and access to the repository is svn://ip.address/svntest
I am trying to create a new branch in my repository using
svn copy trunk \ branches/new-branch
while in svntest folder
and it shows the following error:
svn: 'branches' is not a working copy
trunk
folder contains the folders
BOOK/ bootscripts/ edguide/ patches/ scripts/
and branches
folder is empty
I can access the repository, make changes, etc., users are set correctly.
What could be the cause of this error?
Upvotes: 1
Views: 301
Reputation:
Try
$ svn copy svn://ip.address/svntest/trunk svn://ip.address/svntest/branches/new-branch
In most development activities you will check out only a single branch or trunk, not the repository root, so performing the copy on the server is more useful.
Upvotes: 2
Reputation: 34408
The easiest way is to use the full URLs for trunk and your branch
svn cp svn://ip.address/svntest/trunk svn://ip.address/svntest/branches/new-branch
From inside a checkout you can also use the ^
notation
svn cp ^/trunk ^/branches/new-branch
If you really do have a full check-out of svntest (i.e. with trunk and branches directory) then what you have (without the backslash) ought to work, although changes on this scale are a lot easier to do on the server without having to manage large checkouts.
Upvotes: 0