--- a/hgext/histedit.py Sun May 11 00:49:35 2014 +0900
+++ b/hgext/histedit.py Sun May 11 00:49:35 2014 +0900
@@ -680,11 +680,9 @@
if action in ('f', 'fold'):
message = 'fold-temp-revision %s' % currentnode
else:
- message = ctx.description() + '\n'
- if action in ('e', 'edit', 'm', 'mess'):
- editor = cmdutil.commitforceeditor
- else:
- editor = False
+ message = ctx.description()
+ editopt = action in ('e', 'edit', 'm', 'mess')
+ editor = cmdutil.getcommiteditor(edit=editopt)
commit = commitfuncfor(repo, ctx)
new = commit(text=message, user=ctx.user(),
date=ctx.date(), extra=ctx.extra(),