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

login
register
mail settings
Submitter Boris Feld
Date Oct. 16, 2017, 4:53 p.m.
Message ID <3db230155faa26b3abcf.1508172807@FB>
Download mbox | patch
Permalink /patch/25009/
State Accepted
Headers show

Comments

Boris Feld - Oct. 16, 2017, 4:53 p.m.
# HG changeset patch
# User Boris Feld <boris.feld@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

Patch

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: