mercurial/cmdutil.py
changeset 34029 6e6452bc441d
parent 34022 d5b2beca16c0
child 34055 ae92e5c0441c
--- a/mercurial/cmdutil.py	Wed Aug 30 09:21:31 2017 -0700
+++ b/mercurial/cmdutil.py	Wed Aug 30 20:25:56 2017 +0000
@@ -341,7 +341,7 @@
                              + crecordmod.patchhelptext
                              + fp.read())
                 reviewedpatch = ui.edit(patchtext, "",
-                                        extra={"suffix": ".diff"},
+                                        action="diff",
                                         repopath=repo.path)
                 fp.truncate(0)
                 fp.write(reviewedpatch)
@@ -3217,7 +3217,7 @@
 
     editortext = repo.ui.edit(committext, ctx.user(), ctx.extra(),
                               editform=editform, pending=pending,
-                              repopath=repo.path)
+                              repopath=repo.path, action='commit')
     text = editortext
 
     # strip away anything below this special string (used for editors that want