Changing SVN working copy URL
So feel free to ignore it. However, anyone who cares about changing a subversion working copy’s URL will think this is the best post ever. Here’s how to use find and perl to do it.
To replace the file:// prefix with svn+ssh://hostname, type the following in the root directory of the subversion working copy:
find . -name entries -type f -exec perl -pi.orig -e ’s!file://!svn+ssh://hostname!’ {} \;
(This will also create a backup for each filename in filename.orig.) Of course, feel free to substitute another URL prefix for either of those above.
6 Comments »
Leave a comment
-
Archives
- November 2009 (1)
- July 2009 (1)
- March 2009 (2)
- July 2008 (1)
- May 2008 (1)
- April 2008 (1)
- March 2008 (1)
- February 2008 (1)
- October 2007 (1)
- August 2007 (1)
- July 2007 (2)
- April 2007 (4)
-
Categories
-
RSS
Entries RSS
Comments RSS
Put something new on your blog
and something not quite as boring. :-[
for some reason, I am not invited to read your wife’s blog! : (
boooooooooring.
And your photo no longer shows up. Just thought I’d let you know.
Merry (late) Christmas! When are y’all getting back? We wanted to see if y’all had New Years Eve plans….
You really ought to post more so I can hunt for your mistakes…