Submitter | phabricator |
---|---|
Date | March 22, 2018, 12:12 a.m. |
Message ID | <differential-rev-PHID-DREV-rbm3cit6bgngfmyky4rw-req@phab.mercurial-scm.org> |
Download | mbox | patch |
Permalink | /patch/29743/ |
State | Superseded |
Headers | show |
Comments
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()