Un-Unfuddling
I have been very impressed with Unfuddle, the hosted subversion and project tracking service. For instance, they made a change a while back which meant that my Unfuddle hostname would change, and I was notified in a timely fashion, and the let me know exactly what was going on. It has always struck me as a well-run service.
I never really used it much, however, and never used any feature but the svn repository itself. Since I just installed Redmine on my own hosting, I figured it was time to move my one Unfuddle-hosted project over to my own hosting.
To do that, I used svnsync, which is a pretty handy little tool. I just synced to a local repository which make things easier and then moved the whole thing up to my hosting.
First, make a new repository:
svnadmin create newrepos
Then, create the pre-revprop-change hook in the repository. This allows svnsync to do what it does.
vi newrepos/hooks/pre-revprop-change
That file, if you look at the template hook (pre-revprop-change.tmpl), can do all sorts of stuff. svnsync, however, requires it basically to do nothing but return true. All you need to have in there is this:
#!/bin/sh
exit 0
Now you can go ahead and do your initialize and sync. Once you start this process, don't muck about with the new repository until you're ready to get rid of the old one entirely because you'll mess it up.
svnsync initialize file:///var/tmp/newrepos http://me@svn.hot-project.org/svn/repos
svnsync synchronize file:///var/tmp/newrepos http://me@svn.hot-project.org/svn/repos
That's it!


Post new comment