Changeset View
Changeset View
Standalone View
Standalone View
mercurial/verify.py
Show First 20 Lines • Show All 320 Lines • ▼ Show 20 Line(s) | ): | ||||
label = dir | label = dir | ||||
revlogfiles = mf.files() | revlogfiles = mf.files() | ||||
storefiles.difference_update(revlogfiles) | storefiles.difference_update(revlogfiles) | ||||
if subdirprogress: # should be true since we're in a subdirectory | if subdirprogress: # should be true since we're in a subdirectory | ||||
subdirprogress.increment() | subdirprogress.increment() | ||||
if self.refersmf: | if self.refersmf: | ||||
# Do not check manifest if there are only changelog entries with | # Do not check manifest if there are only changelog entries with | ||||
# null manifests. | # null manifests. | ||||
self._checkrevlog(mf, label, 0) | self._checkrevlog(mf._revlog, label, 0) | ||||
progress = ui.makeprogress( | progress = ui.makeprogress( | ||||
_(b'checking'), unit=_(b'manifests'), total=len(mf) | _(b'checking'), unit=_(b'manifests'), total=len(mf) | ||||
) | ) | ||||
for i in mf: | for i in mf: | ||||
if not dir: | if not dir: | ||||
progress.update(i) | progress.update(i) | ||||
n = mf.node(i) | n = mf.node(i) | ||||
lr = self._checkentry(mf, i, n, seen, mflinkrevs.get(n, []), label) | lr = self._checkentry(mf, i, n, seen, mflinkrevs.get(n, []), label) | ||||
▲ Show 20 Lines • Show All 290 Lines • Show Last 20 Lines |