changeset 200:a563c21235ad

vcs-functions: add mq-snapshot
author Augie Fackler <durin42@gmail.com>
date Tue, 13 Apr 2010 14:49:00 -0500
parents cf3ed4aa3e52
children b80bed8c7c39
files .shell.d/50.vcs_functions.sh
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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'