# HG changeset patch # User Jeff Hammel # Date 1291160973 28800 # Node ID bf567a0e8fef52c0ca77e0c884c63c756cf73b9a # Parent e83b7dd50461c668cd85f46c6de4b7b96046ee69 add a hg-qcommit that does the right thing diff -r e83b7dd50461 -r bf567a0e8fef .bashrc --- 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"