changeset 34473:a746472c3d09

configitems: register the 'histedit.singletransaction' config
author Boris Feld <boris.feld@octobus.net>
date Fri, 30 Jun 2017 03:42:40 +0200
parents 12c068377273
children b068a87e951d
files hgext/histedit.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/histedit.py	Fri Jun 30 03:42:39 2017 +0200
+++ b/hgext/histedit.py	Fri Jun 30 03:42:40 2017 +0200
@@ -224,6 +224,9 @@
 configitem('histedit', 'linelen',
     default=80,
 )
+configitem('histedit', 'singletransaction',
+    default=False,
+)
 
 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
@@ -1130,7 +1133,7 @@
     # Don't use singletransaction by default since it rolls the entire
     # transaction back if an unexpected exception happens (like a
     # pretxncommit hook throws, or the user aborts the commit msg editor).
-    if ui.configbool("histedit", "singletransaction", False):
+    if ui.configbool("histedit", "singletransaction"):
         # Don't use a 'with' for the transaction, since actions may close
         # and reopen a transaction. For example, if the action executes an
         # external process it may choose to commit the transaction first.