comparison .shell.d/50.vcs_functions.sh @ 58:20834b97b814

Add function to rebase all local named branches to HEAD of their parent svn branch.
author Augie Fackler <durin42@gmail.com>
date Fri, 20 Feb 2009 16:05:45 -0600
parents e80bc65439ac
children 87b2ccf6ec44
comparison
equal deleted inserted replaced
57:0ba810271408 58:20834b97b814
21 fi 21 fi
22 if [ x"$url" = "x" ] ; then 22 if [ x"$url" = "x" ] ; then
23 echo -n 'No repo found (tried svn, git-svn, hgsvnclient)' 23 echo -n 'No repo found (tried svn, git-svn, hgsvnclient)'
24 fi 24 fi
25 echo $url 25 echo $url
26 }
27
28 function hg-svn-rebase-all() {
29 for b in `hg llog -u 'Augie Fackler <durin42@gmail.com>' --template '{branches}\n' | sort | uniq`
30 do
31 hg co $b && hg svn rebase || return
32 done
26 } 33 }
27 34
28 function hg-svn-mkbranch() { 35 function hg-svn-mkbranch() {
29 local upstream 36 local upstream
30 upstream=$(hg svn url) 37 upstream=$(hg svn url)