cmdutil: omit redundant "savecommitmessage()" in "tryimportone()"
The preceding patch causes that "makememctx()" with "editor" argument
saves (manually edited) commit message into ".hg/last-message.txt":
saving itself is executed indirectly in "memctx.__init__()".
This makes it redundant to invoke "savecommitmessage()" on caller side
of "makememctx()".
This patch omits such redundant "savecommitmessage()" invocation in
"tryimportone()".
"tryimportone()" uses one of "commiteditor" or "commitforceeditor" as
"editor" argument, and this causes saving commit message always.
--- a/mercurial/cmdutil.py Mon May 05 21:26:40 2014 +0900
+++ b/mercurial/cmdutil.py Mon May 05 21:26:40 2014 +0900
@@ -654,7 +654,6 @@
opts.get('date') or date,
branch, files, store,
editor=commiteditor)
- repo.savecommitmessage(memctx.description())
n = memctx.commit()
finally:
store.close()