mercurial/manifest.py
changeset 39272 73cf21b2e8a6
parent 39271 0d97530eb535
child 39273 071f97d03acb
--- a/mercurial/manifest.py	Fri Aug 10 14:44:50 2018 -0700
+++ b/mercurial/manifest.py	Fri Aug 10 15:01:06 2018 -0700
@@ -1452,7 +1452,7 @@
         if tree:
             if self._revlog._treeondisk:
                 if verify:
-                    dirlog = self._revlog.dirlog(tree)
+                    dirlog = self.getstorage(tree)
                     if node not in dirlog.nodemap:
                         raise LookupError(node, dirlog.indexfile,
                                           _('no node'))
@@ -1479,6 +1479,9 @@
             mancache[node] = m
         return m
 
+    def getstorage(self, tree):
+        return self._revlog.dirlog(tree)
+
     def clearcaches(self, clear_persisted_data=False):
         self._dirmancache.clear()
         self._revlog.clearcaches(clear_persisted_data=clear_persisted_data)
@@ -1638,7 +1641,7 @@
         if not narrowmatch.always():
             if not narrowmatch.visitdir(self._dir[:-1] or '.'):
                 return excludedmanifestrevlog(self._dir)
-        return self._manifestlog._revlog.dirlog(self._dir)
+        return self._manifestlog.getstorage(self._dir)
 
     def read(self):
         if self._data is None: