histedit: use "getcommiteditor()" instead of explicit editor choice for "fold"
authorFUJIWARA Katsunori <foozy@lares.dti.ne.jp>
Sun, 11 May 2014 00:49:35 +0900
changeset 21408 6a48713cb72e
parent 21407 47bfe5d433ac
child 21409 37a3ac247c0d
histedit: use "getcommiteditor()" instead of explicit editor choice for "fold" This patch doesn't change any tests like as preceding patches, because editor invocation is already tested in "test-histedit-fold.t".
hgext/histedit.py
--- a/hgext/histedit.py	Sun May 11 00:49:35 2014 +0900
+++ b/hgext/histedit.py	Sun May 11 00:49:35 2014 +0900
@@ -299,7 +299,7 @@
                          user=user,
                          date=date,
                          extra=extra,
-                         editor=cmdutil.commitforceeditor)
+                         editor=cmdutil.getcommiteditor(edit=True))
     return repo.commitctx(new)
 
 def pick(ui, repo, ctx, ha, opts):