Mercurial > dotfiles
changeset 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 | f743e87cc3cf |
files | .shell.d/50.vcs_functions.sh |
diffstat | 1 files changed, 13 insertions(+), 0 deletions(-) [+] |
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