-
-
Save Gab-km/1192689 to your computer and use it in GitHub Desktop.
hg fix ["fixed message"] (for Windows)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# hgrc | |
# if you use some Unix base operating systems, like Linux distributions, BSDs or Macs, | |
# see: https://gist.github.com/1187980 | |
[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 . && (if "$1" neq "" ( hg qrefresh -m "$1" ) else ( hg qrefresh -e )) & hg qfinish -a ) else if "$1" neq "" ( hg qrefresh -m "$1" ) else ( hg qrefresh -e )) & hg unshelve -n 'tmp.hg-fix' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment