Mercurial > dotfiles
comparison .shell.d/50.hg_functions.sh @ 232:369d869082fd
hg-rebase-all: corrected wc cleanliness check
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Mon, 11 Oct 2010 22:56:06 -0500 |
parents | 6da5a4729bc7 |
children | 93b24cdd2cce |
comparison
equal
deleted
inserted
replaced
231:6da5a4729bc7 | 232:369d869082fd |
---|---|
10 function mq-snapshot () { | 10 function mq-snapshot () { |
11 mq ci -m "Applied on $(hg log -r qparent --template '{node|short}\n')" | 11 mq ci -m "Applied on $(hg log -r qparent --template '{node|short}\n')" |
12 } | 12 } |
13 | 13 |
14 function hg_rebase_all () { | 14 function hg_rebase_all () { |
15 hg sum | grep 'commit: .* (clean)$' || (echo 'abort: wc not clean' ; return 1) || return 1 | 15 hg sum | egrep 'commit: .*\(clean\)$' || (echo 'abort: wc not clean' ; return 1) || return 1 |
16 if [ "x$1" = "x" ] ; then | 16 if [ "x$1" = "x" ] ; then |
17 echo 'abort: give destination for rebase' | 17 echo 'abort: give destination for rebase' |
18 return 2 | 18 return 2 |
19 fi | 19 fi |
20 if [ "$1" = "tip" ] ; then | 20 if [ "$1" = "tip" ] ; then |