[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Different URLs for one repository?

From: Francois Beausoleil <fbos_at_users.sourceforge.net>
Date: 2003-10-14 00:42:20 CEST

svn switch --relocate should get you out of your bind.

Relocate changes all URLs in your working copy that match URL1 to URL2.
So, if you use svn://internal.server/repos/path, but you use
svn://external.mycompany.com/repos/path from outside, you can issue the
following:

svn switch --relocate svn://internal.server/repos/
svn://external.mycompany.com/repos/

to change all paths inside your repository to point to the new location.
Reverse the arguments when you go back inside.

Hope that helps !
François

On Mon, 13 Oct 2003 12:09:02 +0100, "Adrian Howard"
<adrianh@quietstars.com> said:
> Hi,
>
> Due to a clients network setup I have an environment where the office
> repository URL is different from the external URL. So, if I checkout at
> home I cannot do anything involving repository access in the office
> because the URLs don't match. I'm accessing the repository over SSH
> using svnserve.
>
> Currently I'm getting around the problem by pointing SVN_SSH towards a
> little shell script that munges the SSH host depending on my current
> location.
>
> This works just dandy, but I was wondering if there was a more elegant
> solution?
>
> Cheers,
>
> Adrian
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
Developer of Java Gui Builder
http://jgb.sourceforge.net/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Oct 14 00:44:45 2003

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.