Svn copy returns “Repository moved permanetly”

svn

I've always used TortoiseSVN, but now I need to create a branch using the command line, and I cannot seem to get it to work.

I'm trying to follow the steps listed here Branching Instructions

And I'm using the following command

svn copy https://coolserver:8443/svn/Actant/trunk https://coolserver:8443/svn/Geneva/branches/NewBranch -m "Creating a private branch of trunk."

But I ever time I do, I get the error
svn: Repository moved permanently to 'https://coolserver:8443/'; please relocate

Can anyone help me figure out what I might be doing wrong?

Best Answer

It sounds like the repository location has moved from https://coolserver:8443/svn to https://coolserver:8443/. You can fix your working copy to reflect that, by running

svn switch --relocate https://coolserver:8443/svn/ https://coolserver:8443/

Or you can run your copy command directly on the repository like this:

svn copy https://coolserver:8443/Actant/trunk https://coolserver:8443/Geneva/branches/NewBranch -m "Creating a private branch of trunk."