comparison .shell.d/50.vcs_functions.sh @ 169:040ac89ffe1e

ez-svn-sync: add usage help
author Augie Fackler <durin42@gmail.com>
date Wed, 16 Dec 2009 10:34:54 -0600
parents f485c32913cd
children efa2bfc73d2d
comparison
equal deleted inserted replaced
168:efe94205bf07 169:040ac89ffe1e
7 hg -R .hg/patches $@ 7 hg -R .hg/patches $@
8 ) 8 )
9 } 9 }
10 10
11 function ezsvnsync() { 11 function ezsvnsync() {
12 local url 12 if [ x"$1" = "x" ] ; then
13 echo 'usage: ez-svn-sync repo url'
14 return 0
15 fi
13 local repo 16 local repo
14 repo=$1 17 repo=$1
18 local url
15 url=$2 19 url=$2
16 svnadmin create $repo 20 svnadmin create $repo
17 echo '#!/bin/sh' >> $repo/hooks/pre-revprop-change 21 echo '#!/bin/sh' >> $repo/hooks/pre-revprop-change
18 echo 'exit 0' >> $repo/hooks/pre-revprop-change 22 echo 'exit 0' >> $repo/hooks/pre-revprop-change
19 chmod +x $repo/hooks/pre-revprop-change 23 chmod +x $repo/hooks/pre-revprop-change