# HG changeset patch # User Augie Fackler # Date 1412791725 14400 # Node ID fc89d315942f3d6d67c60ad0d71f6c435fe56a5a # Parent cd4af92d47514aa70f5db51edf7138d73885deb4 hg_rebase_all: optimize by using -b instead of checking out revision to rebase diff --git a/.shell.d/50.hg_functions.sh b/.shell.d/50.hg_functions.sh --- 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