# HG changeset patch # User Steve Losh # Date 1282833395 14400 # Node ID e3e8f6fdc3d780c7d056f2b89419c91bc2d57252 # Parent f14da576aebe71de75ce3e0238c27f506bc97f8f hg: add pushunder diff -r f14da576aebe -r e3e8f6fdc3d7 .hgrc --- a/.hgrc Thu Aug 26 10:29:42 2010 -0400 +++ b/.hgrc Thu Aug 26 10:36:35 2010 -0400 @@ -159,6 +159,11 @@ $HG qfinish temp-for-under && \ $HG qpush $HG_CUR_PATCH +pushunder = !HG_CUR_PATCH=`$HG qtop --color=never` && \ + $HG qpop -a && \ + $HG push $@ && \ + $HG qpush --goto $HG_CUR_PATCH + # Edit the current repo's hgrc file. erc = !$EDITOR `$HG root`/.hg/hgrc