config: register the 'devel.strip-obsmarkers' config
The single explicit default that existed so far is converted to registered
config value.
--- a/mercurial/configitems.py Wed Jun 28 13:32:28 2017 +0200
+++ b/mercurial/configitems.py Wed Jun 28 13:32:36 2017 +0200
@@ -80,6 +80,9 @@
coreconfigitem('devel', 'serverrequirecert',
default=None,
)
+coreconfigitem('devel', 'strip-obsmarkers',
+ default=True,
+)
coreconfigitem('patch', 'fuzz',
default=2,
)
--- a/mercurial/repair.py Wed Jun 28 13:32:28 2017 +0200
+++ b/mercurial/repair.py Wed Jun 28 13:32:36 2017 +0200
@@ -132,7 +132,7 @@
stripbases = [cl.node(r) for r in tostrip]
stripobsidx = obsmarkers = ()
- if repo.ui.configbool('devel', 'strip-obsmarkers', True):
+ if repo.ui.configbool('devel', 'strip-obsmarkers'):
obsmarkers = obsutil.exclusivemarkers(repo, stripbases)
if obsmarkers:
stripobsidx = [i for i, m in enumerate(repo.obsstore)