--- a/hgext/narrow/__init__.py Fri Sep 28 13:55:17 2018 -0700
+++ b/hgext/narrow/__init__.py Fri Sep 28 12:05:48 2018 -0700
@@ -15,11 +15,9 @@
testedwith = 'ships-with-hg-core'
from mercurial import (
- extensions,
localrepo,
registrar,
repository,
- verify as verifymod,
)
from . import (
@@ -70,15 +68,5 @@
narrowpatch.setup(repo)
narrowwirepeer.reposetup(repo)
-def _verifierinit(orig, self, repo, matcher=None):
- # The verifier's matcher argument was desgined for narrowhg, so it should
- # be None from core. If another extension passes a matcher (unlikely),
- # we'll have to fail until matchers can be composed more easily.
- assert matcher is None
- orig(self, repo, repo.narrowmatch())
-
-def extsetup(ui):
- extensions.wrapfunction(verifymod.verifier, '__init__', _verifierinit)
-
templatekeyword = narrowtemplates.templatekeyword
revsetpredicate = narrowtemplates.revsetpredicate