diff .bashrc @ 110:bf567a0e8fef

add a hg-qcommit that does the right thing
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 30 Nov 2010 15:49:33 -0800
parents e841c419199e
children 2db73718f645
line wrap: on
line diff
--- a/.bashrc	Mon Nov 29 08:34:29 2010 -0800
+++ b/.bashrc	Tue Nov 30 15:49:33 2010 -0800
@@ -277,6 +277,24 @@
 done
 }
 
+hg-qcommit() {
+message=$1
+hg qrefresh
+if [ -z "${message}" ]
+then
+    hg qcommit
+else
+    hg qcommit -m "${message}"
+fi
+hgroot=$(hg root)
+patches=${hgroot}/.hg/patches/ 
+if [ -e ${patches}.hg ]
+then
+    cd ${patches}
+    hg push
+fi
+}
+
 blog-file() {
 
 echo "$HOME/web/blog/k0s/entries/public/$1"