views:

469

answers:

5

Is it possible to use same working copy and to put the same into two different SVN servers(commit, update,...)?

+3  A: 

Yes, you can use the Relocate (thanks, Peter) command to connect your working copy with the first repository, commit there, and then relocate to the second repository and commit there as well. Better make a copy of your working copy folder somewhere else first.

Pawel Krakowiak
I'm getting 'Repository UUID doesn't match' error :(
Saneef
Are the login credentials different for the repositories?
Pawel Krakowiak
This is not working ! Each repository has its own UUID so you cannot switch --relocate to a new URL which is a different Repository. except you manipulate the uuid to match(which is not a good thing to do)
Peter Parker
I think you're right, Relocate is the right thing to do.
Pawel Krakowiak
For me 'Relocate' is also giving UUID problem :(
Saneef
Are you relocating to the same repository on two different servers? I think not, it looks like what you're trying to do is to relocate to a totally different repository (that was created separately, not copied) - then I guess you can't do that.
Pawel Krakowiak
A: 

If multiple people would be talking to different svn servers, you'll have trouble. The two servers won't talk to each other to make sure they don't have conflicts, use the same revision numbers etc. At least, I don't know of any svn hacks that will do this. (There are other distributed version systems based around svn, such as svk.)

What's the core goal here? Can you only push to a single server, but then have a post-commit hook to replicate the change to another server, which would allow easy read-only access from the other location?

The more details you can give about what you want to do, the more likely we are to be able to help you.

Jon Skeet
+1  A: 

Distributed version control systems, such as Mercurial, Bazaar or Git are better suited for such tasks. You can push you changes in any number of repositories.

Eugene Morozov
A: 

Its possible but horribly racy. I currently have to do that because my ISP is brain dead and I have a hard problem reaching various data centers in Europe. So, I push to my server in Canada which immediately pushes to the real repository.

On two occasions, I actually ended up with a different revision number (+1), which means my next svn up became very interesting.

So, I just used SSHFS (a FUSE mount) to edit files in place on the Canada copy, then committed directly. Its still a real pain and one of the many reasons why I love Mercurial so much.

Tim Post