manifest: add bundlemanifestlog support
authorDurham Goode <durham@fb.com>
Fri, 11 Nov 2016 01:15:59 -0800
changeset 30373 31de088945cd
parent 30372 7c7d845f8b64
child 30374 f2d146d1e8d6
manifest: add bundlemanifestlog support As part of deprecating manifest.manifest we need to make bundlerepo support manifestlog.
mercurial/bundlerepo.py
--- a/mercurial/bundlerepo.py	Thu Nov 10 02:13:19 2016 -0800
+++ b/mercurial/bundlerepo.py	Fri Nov 11 01:15:59 2016 -0800
@@ -187,9 +187,9 @@
         finally:
             self.filteredrevs = oldfilter
 
-class bundlemanifest(bundlerevlog, manifest.manifest):
+class bundlemanifest(bundlerevlog, manifest.manifestrevlog):
     def __init__(self, opener, bundle, linkmapper, dirlogstarts=None, dir=''):
-        manifest.manifest.__init__(self, opener, dir=dir)
+        manifest.manifestrevlog.__init__(self, opener, dir=dir)
         bundlerevlog.__init__(self, opener, self.indexfile, bundle,
                               linkmapper)
         if dirlogstarts is None:
@@ -207,7 +207,7 @@
         if node in self.fulltextcache:
             result = self.fulltextcache[node].tostring()
         else:
-            result = manifest.manifest.revision(self, nodeorrev)
+            result = manifest.manifestrevlog.revision(self, nodeorrev)
         return result
 
     def dirlog(self, d):