diff .shell.d/50.vcs_functions.sh @ 62:f9e826bd1f1b

Add a function to ammend the latest revision in hg. I don't do this often, but when I need it it is handy.
author Augie Fackler <durin42@gmail.com>
date Wed, 11 Mar 2009 10:47:19 -0500
parents 79c2c3932362
children 1b4067cc97ca
line wrap: on
line diff
--- a/.shell.d/50.vcs_functions.sh
+++ b/.shell.d/50.vcs_functions.sh
@@ -48,6 +48,10 @@ function hg-svn-rebase-all() {
     done
 }
 
+function hg-ammend() {
+    hg qimport -r . && hg qref && hg qfin qtip
+}
+
 function hg-svn-mkbranch() {
     local upstream
     upstream=$(hg svn url)