comparison .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
comparison
equal deleted inserted replaced
348:cd4af92d4751 349:fc89d315942f
26 if [ "$marks" = "no bookmarks set" ] ; then 26 if [ "$marks" = "no bookmarks set" ] ; then
27 echo "no bookmarks set, nothing to rebase" 27 echo "no bookmarks set, nothing to rebase"
28 fi 28 fi
29 for b in $(echo $marks) ; do 29 for b in $(echo $marks) ; do
30 echo "About to rebase $b" 30 echo "About to rebase $b"
31 hg co --clean $b 31 out=$(hg rebase -d "$1" -b "$b")
32 out=$(hg rebase -d "$1")
33 code=$? 32 code=$?
34 echo $out | grep "nothing to rebase" 33 echo $out | grep "nothing to rebase"
35 if [ $? = 0 ] ; then 34 if [ $? = 0 ] ; then
36 echo 'moving on' 35 echo 'moving on'
37 else 36 else