hgext/narrow/__init__.py
changeset 36472 d0d5eef57fb0
parent 36468 6aae86976324
child 37136 e2d386b8a38f
--- a/hgext/narrow/__init__.py	Wed Feb 28 12:56:01 2018 -0800
+++ b/hgext/narrow/__init__.py	Wed Feb 28 10:38:09 2018 -0800
@@ -84,8 +84,7 @@
     # 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
-    matcher = getattr(repo, 'narrowmatch', lambda: None)()
-    orig(self, repo, matcher)
+    orig(self, repo, repo.narrowmatch())
 
 def extsetup(ui):
     extensions.wrapfunction(verifymod.verifier, '__init__', _verifierinit)