diff options
author | WeeBull <psarge@Gmail.com> | 2015-11-26 14:08:53 +0000 |
---|---|---|
committer | WeeBull <psarge@Gmail.com> | 2015-11-26 14:08:53 +0000 |
commit | b57ddd6a6798a03e0302811e27edb82735280f67 (patch) | |
tree | 11eb7f32cebfaef89dd8b6b97a3496d3d7b83a3f /plugins/mercurial | |
parent | 22632aac7c99e02ec38223c84b2348435a82d1b5 (diff) | |
download | zsh-b57ddd6a6798a03e0302811e27edb82735280f67.tar.gz zsh-b57ddd6a6798a03e0302811e27edb82735280f67.tar.bz2 zsh-b57ddd6a6798a03e0302811e27edb82735280f67.zip |
Use actual `commit --amend` command for Mercurial
Rather than trying to emulate `git commit --amend` using mercurial queues (which might have side effects if you're using MQ for other things) use the `commit --amend` command which was introduced in Mercurial 2.2 (2012-05-01).
Diffstat (limited to 'plugins/mercurial')
-rw-r--r-- | plugins/mercurial/mercurial.plugin.zsh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/mercurial/mercurial.plugin.zsh b/plugins/mercurial/mercurial.plugin.zsh index 86200ccf6..3ae59496e 100644 --- a/plugins/mercurial/mercurial.plugin.zsh +++ b/plugins/mercurial/mercurial.plugin.zsh @@ -14,8 +14,7 @@ alias hgo='hg outgoing' alias hgp='hg push' alias hgs='hg status' alias hgsl='hg log --limit 20 --template "{node|short} | {date|isodatesec} | {author|user}: {desc|strip|firstline}\n" ' -# this is the 'git commit --amend' equivalent -alias hgca='hg qimport -r tip ; hg qrefresh -e ; hg qfinish tip' +alias hgca='hg commit --amend' # list unresolved files (since hg does not list unmerged files in the status command) alias hgun='hg resolve --list' |