[PATCH 2 of 7] configitems: register the 'experimental.effect-flags' config

Boris Feld boris.feld at octobus.net
Mon Oct 16 12:53:27 EDT 2017


# HG changeset patch
# User Boris Feld <boris.feld at octobus.net>
# Date 1507494147 -7200
#      Sun Oct 08 22:22:27 2017 +0200
# Node ID 3db230155faa26b3abcf8cbb05bcf213a2232e01
# Parent  e5b06824bc5511d914a29983fb95264719493fb5
# EXP-Topic config.register.ready
# Available At https://bitbucket.org/octobus/mercurial-devel/
#              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r 3db230155faa
configitems: register the 'experimental.effect-flags' config

diff --git a/mercurial/configitems.py b/mercurial/configitems.py
--- a/mercurial/configitems.py
+++ b/mercurial/configitems.py
@@ -346,6 +346,9 @@
 coreconfigitem('experimental', 'nonnormalparanoidcheck',
     default=False,
 )
+coreconfigitem('experimental', 'effect-flags',
+    default=False,
+)
 coreconfigitem('experimental', 'stabilization',
     default=list,
     alias=[('experimental', 'evolution')],
diff --git a/mercurial/obsolete.py b/mercurial/obsolete.py
--- a/mercurial/obsolete.py
+++ b/mercurial/obsolete.py
@@ -1049,8 +1049,7 @@
 
     # Effect flag metadata handling
     saveeffectflag = repo.ui.configbool('experimental',
-                                        'effect-flags',
-                                        False)
+                                        'effect-flags')
 
     tr = repo.transaction('add-obsolescence-marker')
     try:


More information about the Mercurial-devel mailing list