verify: pass a revlog to `_checkrevlog` in `_verifymanifest`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Mon, 03 May 2021 12:20:35 +0200
changeset 47138 bc138f2a2e47
parent 47137 c261899fb282
child 47139 f58a13c52726
verify: pass a revlog to `_checkrevlog` in `_verifymanifest` Since `manifestrevlog` is not a `revlog`, we are passing strange thing to `_checkrevlog`. We fix this to avoid breakage during future change. Differential Revision: https://phab.mercurial-scm.org/D10564
mercurial/verify.py
--- a/mercurial/verify.py	Mon May 03 12:20:25 2021 +0200
+++ b/mercurial/verify.py	Mon May 03 12:20:35 2021 +0200
@@ -326,7 +326,7 @@
         if self.refersmf:
             # Do not check manifest if there are only changelog entries with
             # null manifests.
-            self._checkrevlog(mf, label, 0)
+            self._checkrevlog(mf._revlog, label, 0)
         progress = ui.makeprogress(
             _(b'checking'), unit=_(b'manifests'), total=len(mf)
         )