32d476ffba18
hg: comments for aliases
author | Steve Losh <steve@stevelosh.com> |
---|---|
date | Tue, 24 Aug 2010 12:35:37 -0400 |
parents | 8043d5e48bb6 |
children | d7bd5a0f22b1 |
branches/tags | (none) |
files | .hgrc |
Changes
--- 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 $@