Changing the location of an SVN repo
Assume I have an SVN repo accessed via http at http://svn.example.com/svn/myapp. The URL http://svn.mycompany.com/svn/myapp is an alias for the above (ie same server, same login details). How do I tell an svn client that's already checked out a working copy to use the new URL given that nothing apart from the URL is changing? As an aside, if the new URL was on a different server with different user/pass but contained an identical repository (with a view to moving to a new host), how would that affect things? -- Mark Rogers // More Solutions Ltd (Peterborough Office) // 0844 251 1450 Registered in England (0456 0902) @ 13 Clarke Rd, Milton Keynes, MK1 1LG
How do I tell an svn client that's already checked out a working copy to use the new URL given that nothing apart from the URL is changing?
svn switch --relocate <old URL> <new URL> <wc path> is the command you want - details at http://svnbook.red-bean.com/en/1.5/svn.ref.svn.c.switch.html (note that "svn switch" on it's own is insufficient). HTH, Greg
On 10/05/11 10:13, Greg Thomas wrote:
svn switch --relocate <old URL> <new URL> <wc path> is the command you want - details at
Thanks! -- Mark Rogers // More Solutions Ltd (Peterborough Office) // 0844 251 1450 Registered in England (0456 0902) @ 13 Clarke Rd, Milton Keynes, MK1 1LG
participants (2)
-
Greg Thomas -
Mark Rogers