This sentence is false

functional programming, software, and emacs.

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.

28 August 2006 - Posted by dbueno | howto | | 6 Comments

6 Comments »

  1. Put something new on your blog ;-)

    Comment by Lisa | 05 October 2006 | Reply

  2. and something not quite as boring. :-[

    Comment by Anonymous | 25 November 2006 | Reply

  3. for some reason, I am not invited to read your wife’s blog! : (

    Comment by Julie | 25 November 2006 | Reply

  4. boooooooooring.

    And your photo no longer shows up. Just thought I’d let you know.

    Comment by Julie | 02 December 2006 | Reply

  5. Merry (late) Christmas! When are y’all getting back? We wanted to see if y’all had New Years Eve plans….

    Comment by Julie | 29 December 2006 | Reply

  6. You really ought to post more so I can hunt for your mistakes…

    Comment by Anna B | 26 February 2007 | Reply


Leave a comment