D4889: narrow: introduce a config option to check if narrow is enabled or not
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Fri Oct 5 17:57:32 EDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGe92454e69dc3: narrow: introduce a config option to check if narrow is enabled or not (authored by pulkit, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D4889?vs=11708&id=11715
REVISION DETAIL
https://phab.mercurial-scm.org/D4889
AFFECTED FILES
hgext/narrow/__init__.py
mercurial/configitems.py
CHANGE DETAILS
diff --git a/mercurial/configitems.py b/mercurial/configitems.py
--- a/mercurial/configitems.py
+++ b/mercurial/configitems.py
@@ -538,6 +538,9 @@
coreconfigitem('experimental', 'mmapindexthreshold',
default=None,
)
+coreconfigitem('experimental', 'narrow',
+ default=False,
+)
coreconfigitem('experimental', 'nonnormalparanoidcheck',
default=False,
)
diff --git a/hgext/narrow/__init__.py b/hgext/narrow/__init__.py
--- a/hgext/narrow/__init__.py
+++ b/hgext/narrow/__init__.py
@@ -62,6 +62,7 @@
if not repo.local():
return
+ repo.ui.setconfig('experimental', 'narrow', True, 'narrow-ext')
if repository.NARROW_REQUIREMENT in repo.requirements:
narrowrepo.wraprepo(repo)
narrowwirepeer.reposetup(repo)
To: pulkit, durin42, martinvonz, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list