diff -r 12d5c9eaa86d -r 23819e1d61fd hgext/evolve.py --- a/hgext/evolve.py Wed Apr 29 10:20:04 2015 -0700 +++ b/hgext/evolve.py Thu Apr 23 17:45:46 2015 -0700 @@ -86,7 +86,12 @@ else: raise ImportError('evolve needs version %s or above' % min(testedwith.split())) - +aliases, entry = cmdutil.findcmd('commit', commands.table) +hasinteractivemode = util.any(['interactive' in e for e in entry[1]]) +if hasinteractivemode: + interactiveopt = [['i', 'interactive', None, _('use interactive mode')]] +else: + interactiveopt = [] # This extension contains the following code # # - Extension Helper code @@ -1830,7 +1835,7 @@ ('', 'close-branch', None, _('mark a branch as closed, hiding it from the branch list')), ('s', 'secret', None, _('use the secret phase for committing')), - ] + walkopts + commitopts + commitopts2 + commitopts3, + ] + walkopts + commitopts + commitopts2 + commitopts3 + interactiveopt, _('[OPTION]... [FILE]...')) def amend(ui, repo, *pats, **opts): """combine a changeset with updates and replace it with a new one