diff .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
line wrap: on
line diff
--- a/.shell.d/50.vcs_functions.sh
+++ b/.shell.d/50.vcs_functions.sh
@@ -25,6 +25,13 @@ function svnurlof() {
     echo $url
 }
 
+function hg-svn-rebase-all() {
+    for b in `hg llog -u 'Augie Fackler <durin42@gmail.com>' --template '{branches}\n' | sort | uniq`
+    do
+        hg co $b && hg svn rebase || return
+    done
+}
+
 function hg-svn-mkbranch() {
     local upstream
     upstream=$(hg svn url)