Patchwork D2926: narrow: use featuresetupfuncs

login
register
mail settings
Submitter phabricator
Date March 28, 2018, 10:06 a.m.
Message ID <de1ac63861320d7ae5954bcee780b64f@localhost.localdomain>
Download mbox | patch
Permalink /patch/29914/
State Not Applicable
Headers show

Comments

phabricator - March 28, 2018, 10:06 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGe2d386b8a38f: narrow: use featuresetupfuncs (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2926?vs=7218&id=7349

REVISION DETAIL
  https://phab.mercurial-scm.org/D2926

AFFECTED FILES
  hgext/narrow/__init__.py

CHANGE DETAILS




To: indygreg, durin42, #hg-reviewers, pulkit
Cc: mercurial-devel

Patch

diff --git a/hgext/narrow/__init__.py b/hgext/narrow/__init__.py
--- a/hgext/narrow/__init__.py
+++ b/hgext/narrow/__init__.py
@@ -56,10 +56,12 @@ 
 # Export the commands table for Mercurial to see.
 cmdtable = narrowcommands.table
 
-localrepo.localrepository._basesupported.add(changegroup.NARROW_REQUIREMENT)
+def featuresetup(ui, features):
+    features.add(changegroup.NARROW_REQUIREMENT)
 
 def uisetup(ui):
     """Wraps user-facing mercurial commands with narrow-aware versions."""
+    localrepo.featuresetupfuncs.add(featuresetup)
     narrowrevlog.setup()
     narrowbundle2.setup()
     narrowmerge.setup()