changeset 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 cd4af92d4751
children b55a7fe4dfab
files .shell.d/50.hg_functions.sh
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
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