manifest: add bundlemanifestlog support
As part of deprecating manifest.manifest we need to make bundlerepo support
manifestlog.
--- 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):