Mercurial > public > mercurial-scm > hg
comparison mercurial/verify.py @ 47138:bc138f2a2e47
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
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 03 May 2021 12:20:35 +0200 |
parents | d55b71393907 |
children | f58a13c52726 |
comparison
equal
deleted
inserted
replaced
47137:c261899fb282 | 47138:bc138f2a2e47 |
---|---|
324 if subdirprogress: # should be true since we're in a subdirectory | 324 if subdirprogress: # should be true since we're in a subdirectory |
325 subdirprogress.increment() | 325 subdirprogress.increment() |
326 if self.refersmf: | 326 if self.refersmf: |
327 # Do not check manifest if there are only changelog entries with | 327 # Do not check manifest if there are only changelog entries with |
328 # null manifests. | 328 # null manifests. |
329 self._checkrevlog(mf, label, 0) | 329 self._checkrevlog(mf._revlog, label, 0) |
330 progress = ui.makeprogress( | 330 progress = ui.makeprogress( |
331 _(b'checking'), unit=_(b'manifests'), total=len(mf) | 331 _(b'checking'), unit=_(b'manifests'), total=len(mf) |
332 ) | 332 ) |
333 for i in mf: | 333 for i in mf: |
334 if not dir: | 334 if not dir: |