Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Gab-km
Created September 2, 2011 08:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Gab-km/1188198 to your computer and use it in GitHub Desktop.
Save Gab-km/1188198 to your computer and use it in GitHub Desktop.
hg fix "fixed message"
# hgrc
[extensions]
mq =
hgshelve = $HOME/.mercurial/extensions/hgshelve/hgshelve.py
[alias]
# fix latest commit message
fix = ! hg shelve --all -n 'tmp.hg-fix' && hg qtop > NUL & if errorlevel 1 ( hg qimport -r . && hg qrefresh -m "$1" && hg qfinish -a ) else ( hg qrefresh -m "$1" ) && hg unshelve -n 'tmp.hg-fix'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment