RE: different IP addresses due to moving WCs with a laptop
From: Moretti, Giovanni <G.Moretti_at_massey.ac.nz>
Date: 2005-06-09 05:07:45 CEST
Hi Uli
> Working with a WC on a laptop, we sometimes use different IP
> Currently, we solve this by tunneling the access through
I've got the same problem using a repo from desktop at work, home and
I've handled this by using a Fake site name so the working copy always
svn://SVNRepoSite/...
and then in the Hosts file (a file mapping IP Name to Numbers) put a
111.222.333.444 SVNRepoSite
or, if you want to loop it back to the PC you're currently on, either
127.0.0.1 SVNRepoSite
With this technique, it doesn't matter where the repository is as long
The Host file is located:
you could write a little small program that let you do something like:
amAt home
which rewrote the hosts file appropriately.
Note that under WinXP, the "hosts" file is a standard text file, even
This works well - transparent svn update/commits from three different
Cheers
---------------------------------------------------------------------
|
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.