Tag: SVN

  • Convert SVN to Mercurial (Script)

    Below is a simple Python script that will traverse your online SVN repo and run the necessary commands to convert it to Mercurial. This is probably useless to most, but it saved me a great deal of time converting a large set of repos so I figured posting it couldn’t hurt: {{{ lang=python #!/usr/bin/env python […]

  • Couldn’t get lock on destination repos – SVNSync

    To fix this issue, remove the lock property on the remote repository via svn command line. The lock property is typically left after an incomplete synchronization, and can be removed with the below command: {{{ svn propdel –revprop -r0 svn:sync-lock file:///path/to/repository/mirror }}}

  • Syncing a remote SVN repository with svnsync

    * Create a blank repository on the destination server {{{ mkdir /var/svn/my_project svnadmin create /var/svn/my_project }}} * Create (and make executable) the svn pre-revprop-change hook. You can do whatever you would like with this script, but that will not be covered here. {{{ echo ‘#!/bin/sh’ > /var/svn/my_project/hooks/pre-revprop-change chmod +x /var/svn/my_project/hooks/pre-revprop-change }}} * Initialize the source […]