Mercurial > public > mercurial-scm > hg
diff mercurial/commands.py @ 21712:51035af2c0bf
backout: accept '--edit' like other commands creating new changeset
After this patch, users can invoke editor for the commit message by
'--edit' option regardless of '--message'/'--logfile'.
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Sun, 01 Jun 2014 00:08:32 +0900 |
parents | 503bb3af70fe |
children | db2392a4effc |
line wrap: on
line diff
--- a/mercurial/commands.py Sun Jun 01 00:08:32 2014 +0900 +++ b/mercurial/commands.py Sun Jun 01 00:08:32 2014 +0900 @@ -386,6 +386,7 @@ ('', 'parent', '', _('parent to choose when backing out merge (DEPRECATED)'), _('REV')), ('r', 'rev', '', _('revision to backout'), _('REV')), + ('e', 'edit', False, _('invoke editor on commit messages')), ] + mergetoolopts + walkopts + commitopts + commitopts2, _('[OPTION]... [-r] REV')) def backout(ui, repo, node=None, rev=None, **opts): @@ -488,7 +489,7 @@ def commitfunc(ui, repo, message, match, opts): - e = cmdutil.getcommiteditor() + e = cmdutil.getcommiteditor(**opts) if not message: # we don't translate commit messages message = "Backed out changeset %s" % short(node)