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