# HG changeset patch # User Augie Fackler # Date 1271188140 18000 # Node ID a563c21235ad40ccc8f65225c1326f00df5d50f5 # Parent cf3ed4aa3e5254967937295f06c4390610c3442d vcs-functions: add mq-snapshot diff --git a/.shell.d/50.vcs_functions.sh b/.shell.d/50.vcs_functions.sh --- a/.shell.d/50.vcs_functions.sh +++ b/.shell.d/50.vcs_functions.sh @@ -8,6 +8,10 @@ function mq () { ) } +function mq-snapshot () { + mq ci -m "Applied on $(hg log -r qparent --template '{node|short}\n')" +} + function ezsvnsync() { if [ x"$1" = "x" ] ; then echo 'usage: ez-svn-sync repo url'