# HG changeset patch # User Steve Losh # Date 1282667737 14400 # Node ID 32d476ffba186f017f94aa8d1ecd6e039a2cadb3 # Parent 8043d5e48bb695516c11139f08c30d8112e09410 hg: comments for aliases diff -r 8043d5e48bb6 -r 32d476ffba18 .hgrc --- a/.hgrc Fri Aug 20 09:20:03 2010 -0400 +++ b/.hgrc Tue Aug 24 12:35:37 2010 -0400 @@ -127,6 +127,7 @@ fet = fetch --message 'Automated merge.' +# Make a new repo with some sensible defaults. mkrepo = !$HG init $1 && cd $1 && \ echo 'syntax: glob' > .hgignore && \ echo '' >> .hgignore && \ @@ -137,8 +138,12 @@ echo '*.un~' >> .hgignore && \ echo "[paths]\n" >> .hg/hgrc +# Empty the current MQ patch. qempty = !$HG qrefresh -X `$HG root` +# Commit under any applied MQ patches, and go back to where you were after doing so. +# `hg ciunder` will use `$EDITOR` to get the commit message +# `hg cmunder 'message'` takes it on the command line ciunder = !HG_CUR_PATCH=`$HG qtop --color=never` && \ $HG qnew temp-for-under && \ $HG qpop -a && \ @@ -153,8 +158,12 @@ $HG qrefresh -m "$@" && \ $HG qfinish temp-for-under && \ $HG qpush $HG_CUR_PATCH + +# Edit the current repo's hgrc file. erc = !$EDITOR `$HG root`/.hg/hgrc +# Simple bug/todo tracking +# Idea from Justin: http://gist.github.com/464871 # Install t first: http://bitbucket.org/sjl/t/ bug = !~/lib/t/t.py --task-dir="`$HG root`" --list=BUGS $@ todo = !~/lib/t/t.py --task-dir="`$HG root`" --list=TODO $@