Wednesday, March 30, 2011

How do I update all svn:externals references after a server migration?

I migrated an SVN server today and ran into an issue. I have a repo that has an svn:externals property on a trunk subfolder. This folder has been branched a bunch of times and now this svn:externals reference needs updated on every single branch to refer to the new server.

Is there an easy way to update all of these properties?

I'm not excited about updating them individually by hand.

I'm on windows, too, so a fancy bash script won't work. There's got to be an easier way!

Note: this is from the old pre-1.5 days when svn:externals references had to be absolute.


Update: a simple relocate won't do it since these are absolute URLs.

From stackoverflow
  • Would a SVN Relocate work?

    It's used when a repository has moved.

    Michael Haren : No, that moves my working folder, which is great, but doesn't update any properties. These are absolute urls to the old server.
  • You could install Cygwin and use the bash script to which you linked.

    Michael Haren : I was hoping for something easier than that, thanks for the suggestion, though.
  • I'd use SvnDumpTool for this. See this other thread that has more discussion.

0 comments:

Post a Comment