diff .shell.d/50.hg_functions.sh @ 349:fc89d315942f

hg_rebase_all: optimize by using -b instead of checking out revision to rebase
author Augie Fackler <raf@durin42.com>
date Wed, 08 Oct 2014 14:08:45 -0400
parents 2b129f63d910
children
line wrap: on
line diff
--- a/.shell.d/50.hg_functions.sh
+++ b/.shell.d/50.hg_functions.sh
@@ -28,8 +28,7 @@ function hg_rebase_all () {
     fi
     for b in $(echo $marks) ; do
         echo "About to rebase $b"
-        hg co --clean $b
-        out=$(hg rebase -d "$1")
+        out=$(hg rebase -d "$1" -b "$b")
         code=$?
         echo $out | grep "nothing to rebase"
         if [ $? = 0 ] ; then