grigoryvp
grigoryvp

Reputation: 42613

svn repository path changed: how to re-bind my local folder to it?

i have an repository that is visible as e:/svn/repository and it is checked out to a local folder c:/work Now repository path is changed to f:/general/svn/repository what svn command to use in order for c:/work to be bound to the new repository path? i do not want to delete c:/work and doing fresh check out since c:/work contains lots on unversioned temp files that i want to keep in place

i have tried checkout f:/general/svn/repository into c:/work, svn gives error: c:/work is already a working copy for a different url

Upvotes: 3

Views: 3565

Answers (3)

Alex Barrett
Alex Barrett

Reputation: 16475

cd c:\work
svn switch --relocate file:///E:/svn/repository file:///F:/general/svn/repository

Upvotes: 7

Powerlord
Powerlord

Reputation: 88846

You want the svn switch--relocate command.

Upvotes: 2

Tom Ritter
Tom Ritter

Reputation: 101400

It looks like you're using TortoiseSVN in which case you'd choose "Relocate" and put in the new address.

Upvotes: 1

Related Questions