Mercurial > public > mercurial-scm > hg-stable
diff mercurial/commands.py @ 25796:4eb8d8a44bf1
record: omit meaningless 'commit' suggestion at 'hg commit -i'
Before this patch, 'hg commit -i' under non-interactive mode suggests
'use commit instead', and it obviously meaningless.
This patch makes 'record.record'()' examine 'ui.interactive()' and
show suggestion by itself before calling 'commands.commit()'.
This allows 'commands.commit()' to specify 'None' for 'cmdsuggest'
argument of 'cmdutil.dorecord()' to omit meaningless 'commit'
suggestion at 'hg commit -i'.
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Wed, 15 Jul 2015 04:45:58 +0900 |
parents | 95dc4b009f60 |
children | 0203c50a589f 6fbe35588433 |
line wrap: on
line diff
--- a/mercurial/commands.py Wed Jul 15 03:43:16 2015 +0900 +++ b/mercurial/commands.py Wed Jul 15 04:45:58 2015 +0900 @@ -1480,7 +1480,7 @@ """ if opts.get('interactive'): opts.pop('interactive') - cmdutil.dorecord(ui, repo, commit, 'commit', False, + cmdutil.dorecord(ui, repo, commit, None, False, cmdutil.recordfilter, *pats, **opts) return