D5198: configitems: rename the config to prevent adding an alias in future
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Wed Oct 31 12:31:57 UTC 2018
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
Right now the config option looks like:
[experimental.server]
stream-narrow-clones=
which does not match how config options are generally defined in core. So let's
rename this to:
[experimental]
server.stream-narrow-clones=
before the new release so that we don't have to add an alias in future for this.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D5198
AFFECTED FILES
mercurial/bundle2.py
mercurial/configitems.py
CHANGE DETAILS
diff --git a/mercurial/configitems.py b/mercurial/configitems.py
--- a/mercurial/configitems.py
+++ b/mercurial/configitems.py
@@ -610,7 +610,7 @@
coreconfigitem('experimental', 'server.manifestdata.recommended-batch-size',
default=100000,
)
-coreconfigitem('experimental.server', 'stream-narrow-clones',
+coreconfigitem('experimental', 'server.stream-narrow-clones',
default=False,
)
coreconfigitem('experimental', 'single-head-per-branch',
diff --git a/mercurial/bundle2.py b/mercurial/bundle2.py
--- a/mercurial/bundle2.py
+++ b/mercurial/bundle2.py
@@ -1691,8 +1691,8 @@
includepats = kwargs.get(r'includepats')
excludepats = kwargs.get(r'excludepats')
- narrowstream = repo.ui.configbool('experimental.server',
- 'stream-narrow-clones')
+ narrowstream = repo.ui.configbool('experimental',
+ 'server.stream-narrow-clones')
if (includepats or excludepats) and not narrowstream:
raise error.Abort(_('server does not support narrow stream clones'))
To: pulkit, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list