comparison .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
comparison
equal deleted inserted replaced
62:f9e826bd1f1b 63:1b4067cc97ca
4 4
5 function mq () { 5 function mq () {
6 ( wcroot ; 6 ( wcroot ;
7 hg -R .hg/patches $@ 7 hg -R .hg/patches $@
8 ) 8 )
9 }
10
11 function ez-svn-sync() {
12 local url
13 local repo
14 repo=$1
15 url=$2
16 svnadmin create $repo
17 echo '#!/bin/sh' >> $repo/hooks/pre-revprop-change
18 echo 'exit 0' >> $repo/hooks/pre-revprop-change
19 chmod +x $repo/hooks/pre-revprop-change
20 svnsync init file://`pwd`/$repo $url
21 svnsync sync file://`pwd`/$repo
9 } 22 }
10 23
11 # Function to grab the url of an svn wc 24 # Function to grab the url of an svn wc
12 function svnurlof() { 25 function svnurlof() {
13 local url 26 local url