Mercurial > hg > mercurial-source
changeset 26761:927c0d84e09f
rebase: fix warning about ignoring tool option on rebase continue (issue4698)
Before this patch rebase --continue with specified --tool option outputs
warnings "tool option will be ignored". It is false statement because
in case of any merge conflicts it uses specified tool to resolve it.
This patch makes this warning appears only when user specified --tool
when running rebase --abort , in this case tool doesn't have any
sense
author | liscju <piotr.listkiewicz@gmail.com> |
---|---|
date | Tue, 01 Sep 2015 21:37:51 +0200 |
parents | e037fd28c8bb |
children | bb6936bec727 |
files | hgext/rebase.py tests/test-rebase-parameters.t |
diffstat | 2 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/rebase.py +++ b/hgext/rebase.py @@ -218,7 +218,7 @@ if srcf or basef or destf: raise util.Abort( _('abort and continue do not allow specifying revisions')) - if opts.get('tool', False): + if abortf and opts.get('tool', False): ui.warn(_('tool option will be ignored\n')) try:
--- a/tests/test-rebase-parameters.t +++ b/tests/test-rebase-parameters.t @@ -485,7 +485,6 @@ $ hg resolve -m c2 (no more unresolved files) $ hg rebase -c --tool internal:fail - tool option will be ignored rebasing 2:e4e3f3546619 "c2b" (tip) note: rebase of 2:e4e3f3546619 created no changes to commit saved backup bundle to $TESTTMP/b3/.hg/strip-backup/e4e3f3546619-b0841178-backup.hg (glob)