# HG changeset patch # User Augie Fackler # Date 1286855766 18000 # Node ID 369d869082fdf2bc82ac31c23e73d21ae47b5a32 # Parent 6da5a4729bc7f0f3d467faef68b123473bc4874f hg-rebase-all: corrected wc cleanliness check 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 @@ -12,7 +12,7 @@ function mq-snapshot () { } function hg_rebase_all () { - hg sum | grep 'commit: .* (clean)$' || (echo 'abort: wc not clean' ; return 1) || return 1 + hg sum | egrep 'commit: .*\(clean\)$' || (echo 'abort: wc not clean' ; return 1) || return 1 if [ "x$1" = "x" ] ; then echo 'abort: give destination for rebase' return 2