diff -r bfb38c5cebf4 -r 6e6452bc441d mercurial/cmdutil.py --- 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