views:

82

answers:

4

I checked out a project from SVN server A, but I need to commit my changes back to server B - the repositories on both servers have identical structures. How can I do this with Tortoise SVN?

Thanks, Don

+9  A: 

I think the Relocate option is for this. Haven't used it till now, so I can't vouch.

Edit: Reading some more (http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-relocate.html) it seems it's not what you need. It would work if it's the same repository with the address changed, but not if it's a different repository.

You could get a fresh copy from repository B, get a patch from the changes that you made and apply it on the fresh copy. Then you can commit.

rslite
The relocate option worked perfectly
Don
The subversion documentation says that you should not use relocate in this situation (see the link posted by rslite). Maybe you are lucky that it worked...
Stefan Egli
A: 

Hi Don,

Look here: http://wsmoak.net/subversion/demo/tsvn-checkout.html

You can set the correct URL repository when you checkout.

Evandro
The project is already checked out
Don
Sorry, you´re right. I misunderstood.
Evandro
+1  A: 

You may be able to do what you need by using svn import

phsr
A: 

Do an:

svn export

on "Server A". You'll get the codebase but none of the .svn files. Then go to "Server B" and check the files in as you normally would. I'm not sure if Tortoise SVN has the ability to do an export, so you might have to use the command line for it.

Mike Trpcic