Mercurial > dotfiles
diff .shell.d/50.vcs_functions.sh @ 63:1b4067cc97ca
Add a function to svnsync easier. Done this too many times because of hgsubversion.
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Wed, 11 Mar 2009 10:47:45 -0500 |
parents | f9e826bd1f1b |
children | 9f8bd97da0d4 |
line wrap: on
line diff
--- a/.shell.d/50.vcs_functions.sh +++ b/.shell.d/50.vcs_functions.sh @@ -8,6 +8,19 @@ function mq () { ) } +function ez-svn-sync() { + local url + local repo + repo=$1 + url=$2 + svnadmin create $repo + echo '#!/bin/sh' >> $repo/hooks/pre-revprop-change + echo 'exit 0' >> $repo/hooks/pre-revprop-change + chmod +x $repo/hooks/pre-revprop-change + svnsync init file://`pwd`/$repo $url + svnsync sync file://`pwd`/$repo +} + # Function to grab the url of an svn wc function svnurlof() { local url