# HG changeset patch # User Augie Fackler # Date 1236786465 18000 # Node ID 1b4067cc97caf5597fce9fbfe115e20790048fb4 # Parent f9e826bd1f1bb9eb287549aba9bcd3605bed80c5 Add a function to svnsync easier. Done this too many times because of hgsubversion. diff --git a/.shell.d/50.vcs_functions.sh b/.shell.d/50.vcs_functions.sh --- 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