comparison mercurial/unionrepo.py @ 51028:f70ce1aedbcb

manifestrevlog: flag some inconsistency in bundle/union repo inheritance This "work" but still, this is weird, let us point it out.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 10 Oct 2023 10:01:57 +0200
parents 8520db304f01
children 498afb627f78
comparison
equal deleted inserted replaced
51027:3314c41c3759 51028:f70ce1aedbcb
203 unionrevlog.__init__(self, opener, self.radix, changelog2, linkmapper) 203 unionrevlog.__init__(self, opener, self.radix, changelog2, linkmapper)
204 204
205 205
206 class unionmanifest(unionrevlog, manifest.manifestrevlog): 206 class unionmanifest(unionrevlog, manifest.manifestrevlog):
207 def __init__(self, nodeconstants, opener, opener2, linkmapper): 207 def __init__(self, nodeconstants, opener, opener2, linkmapper):
208 # XXX manifestrevlog is not actually a revlog , so mixing it with
209 # bundlerevlog is not a good idea.
208 manifest.manifestrevlog.__init__(self, nodeconstants, opener) 210 manifest.manifestrevlog.__init__(self, nodeconstants, opener)
209 manifest2 = manifest.manifestrevlog(nodeconstants, opener2) 211 manifest2 = manifest.manifestrevlog(nodeconstants, opener2)
210 unionrevlog.__init__( 212 unionrevlog.__init__(
211 self, opener, self._revlog.radix, manifest2, linkmapper 213 self, opener, self._revlog.radix, manifest2, linkmapper
212 ) 214 )