[PATCH 06 of 10 V2] manifest: add bundlemanifestlog support

Durham Goode durham at fb.com
Fri Nov 11 04:26:39 EST 2016


# HG changeset patch
# User Durham Goode <durham at fb.com>
# Date 1478855759 28800
#      Fri Nov 11 01:15:59 2016 -0800
# Node ID 68e5e96c9634a9bb8b37fced04eefb9233c801f1
# Parent  dfffa0ee1b405f24d674b2d1f87bc55f0e8944c6
manifest: add bundlemanifestlog support

As part of deprecating manifest.manifest we need to make bundlerepo support
manifestlog.

diff --git a/mercurial/bundlerepo.py b/mercurial/bundlerepo.py
--- a/mercurial/bundlerepo.py
+++ b/mercurial/bundlerepo.py
@@ -187,9 +187,9 @@ class bundlechangelog(bundlerevlog, chan
         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 @@ class bundlemanifest(bundlerevlog, manif
         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):


More information about the Mercurial-devel mailing list