This weekend our networking guys decided to change ips for all of our servers. They also changed our subversion server’s ip. This caused some issues in the subversion world with developers who had checkouts pointing to ips instead of hostname, using command similar to:
svn co svn+ssh://192.168.1.10/svn/myrepos/
/home/mycheckout/
Now when they do “svn update” inside the their /home/mycheckout/ directory, they get an error:
We needed to point the checkout to the new ip. Easiest way to do
this is to delete your checkout and re-checkout. Unfortunately,
some of the developers had a lot of modified files which wasn’t
checked in yet. I fixed it by issuing:
find /home/mycheckout -name "entries"|xargs /usr/bin/perl -w -i
-p -e "s/192.168.1.10/10.1.1.10/g"
Find command helps us in finding all the files with name “entries” and xargs takes the filename and passes it to …
[Read more]