Mercurial > dotfiles
comparison .shell.d/50.hg_functions.sh @ 253:93b24cdd2cce
hg funcs: rename mq-snapshot to appease bash
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Mon, 17 May 2010 10:21:12 -0500 |
parents | 369d869082fd |
children | 142fb39e4e55 |
comparison
equal
deleted
inserted
replaced
252:5698bf7ae5b9 | 253:93b24cdd2cce |
---|---|
5 ( wcroot ; | 5 ( wcroot ; |
6 hg -R .hg/patches $@ | 6 hg -R .hg/patches $@ |
7 ) | 7 ) |
8 } | 8 } |
9 | 9 |
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 alias mq-snapshot=mq_snapshot | |
13 | 14 |
14 function hg_rebase_all () { | 15 function hg_rebase_all () { |
15 hg sum | egrep 'commit: .*\(clean\)$' || (echo 'abort: wc not clean' ; return 1) || return 1 | 16 hg sum | egrep 'commit: .*\(clean\)$' || (echo 'abort: wc not clean' ; return 1) || return 1 |
16 if [ "x$1" = "x" ] ; then | 17 if [ "x$1" = "x" ] ; then |
17 echo 'abort: give destination for rebase' | 18 echo 'abort: give destination for rebase' |