Patchwork [04,of,19] histedit: use "getcommiteditor()" instead of explicit editor choice for "fold"

login
register
mail settings
Submitter Katsunori FUJIWARA
Date May 10, 2014, 4:08 p.m.
Message ID <88e4bdc90a28cd842a08.1399738119@feefifofum>
Download mbox | patch
Permalink /patch/4706/
State Accepted
Headers show

Comments

Katsunori FUJIWARA - May 10, 2014, 4:08 p.m.
# HG changeset patch
# User FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
# Date 1399736975 -32400
#      Sun May 11 00:49:35 2014 +0900
# Node ID 88e4bdc90a28cd842a0897faed6ce6543c15247e
# Parent  2a8ca3aba56f05dc638b334db7d05f8f360b2ad6
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".

Patch

diff --git a/hgext/histedit.py b/hgext/histedit.py
--- a/hgext/histedit.py
+++ b/hgext/histedit.py
@@ -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):