tags:

views:

99

answers:

2

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?

+3  A: 

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."
Avi
The repository is definitely not moving. I can still use Tortoise like I always have. And the command you've given is the same as the one I'm running, only you're omitting the svn in the path, which may be accidental, but regardless, it doesn't work.
Jonathan Beerhalter
And again, Occum's Razor wins. I had a typo in the path. I checked the path for typos about 10 times, but never saw it until I got up, went to lunch, came back and checked one last time before committing Hare Kare.
Jonathan Beerhalter
Sorry about that. Couldn't see your typo from over here :-). But I'm glad you didn't have to commit hare kare...
Avi
+1  A: 

Turns out there was a simple typo. Actant and Geneva are two different repos, so you can't copy from one to another. This is why you shouldn't try to code and talk to people at the same time.

The correct command, for anyone who happens to be interested would be

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

Jonathan Beerhalter
+1 for finding the typo while talking to us even :-) :-P
Critical Skill