hgext/gpg.py
changeset 21711 0986af9e7006
parent 19444 f9e04a4e28d0
child 21951 59af0b21ec31
--- a/hgext/gpg.py	Tue Jun 03 13:49:51 2014 -0700
+++ b/hgext/gpg.py	Sun Jun 01 00:08:32 2014 +0900
@@ -204,6 +204,7 @@
            _('the key id to sign with'), _('ID')),
           ('m', 'message', '',
            _('commit message'), _('TEXT')),
+          ('e', 'edit', False, _('invoke editor on commit messages')),
          ] + commands.commitopts2,
          _('hg sign [OPTION]... [REV]...'))
 def sign(ui, repo, *revs, **opts):
@@ -276,7 +277,8 @@
                              % hgnode.short(n)
                              for n in nodes])
     try:
-        repo.commit(message, opts['user'], opts['date'], match=msigs)
+        repo.commit(message, opts['user'], opts['date'], match=msigs,
+                    editor=cmdutil.getcommiteditor(**opts))
     except ValueError, inst:
         raise util.Abort(str(inst))