hgext/narrow/narrowrevlog.py
changeset 37374 ac42e39b1b77
parent 37373 c50078fc32f3
child 39766 9358f5066811
--- a/hgext/narrow/narrowrevlog.py	Mon Apr 02 23:46:04 2018 -0700
+++ b/hgext/narrow/narrowrevlog.py	Tue Apr 03 09:58:16 2018 -0700
@@ -8,7 +8,6 @@
 from __future__ import absolute_import
 
 from mercurial import (
-   manifest,
    revlog,
    util,
 )
@@ -30,14 +29,6 @@
     # load time.
     pass
 
-def makenarrowmanifestlog(mfl, repo):
-    class narrowmanifestlog(mfl.__class__):
-        def get(self, dir, node, verify=True):
-            if not repo.narrowmatch().visitdir(dir[:-1] or '.'):
-                return manifest.excludeddirmanifestctx(dir, node)
-            return super(narrowmanifestlog, self).get(dir, node, verify=verify)
-    mfl.__class__ = narrowmanifestlog
-
 def makenarrowfilelog(fl, narrowmatch):
     class narrowfilelog(fl.__class__):
         def renamed(self, node):