##// END OF EJS Templates
verify: keep the revlog open for reading while verifying it...
marmoute -
r51908:812cd3df default
parent child Browse files
Show More
@@ -270,22 +270,23 b' class verifier:'
270 progress = ui.makeprogress(
270 progress = ui.makeprogress(
271 _(b'checking'), unit=_(b'changesets'), total=len(repo)
271 _(b'checking'), unit=_(b'changesets'), total=len(repo)
272 )
272 )
273 for i in repo:
273 with cl.reading():
274 progress.update(i)
274 for i in repo:
275 n = cl.node(i)
275 progress.update(i)
276 self._checkentry(cl, i, n, seen, [i], b"changelog")
276 n = cl.node(i)
277 self._checkentry(cl, i, n, seen, [i], b"changelog")
277
278
278 try:
279 try:
279 changes = cl.read(n)
280 changes = cl.read(n)
280 if changes[0] != self.repo.nullid:
281 if changes[0] != self.repo.nullid:
281 mflinkrevs.setdefault(changes[0], []).append(i)
282 mflinkrevs.setdefault(changes[0], []).append(i)
283 self.refersmf = True
284 for f in changes[3]:
285 if match(f):
286 filelinkrevs.setdefault(_normpath(f), []).append(i)
287 except Exception as inst:
282 self.refersmf = True
288 self.refersmf = True
283 for f in changes[3]:
289 self._exc(i, _(b"unpacking changeset %s") % short(n), inst)
284 if match(f):
285 filelinkrevs.setdefault(_normpath(f), []).append(i)
286 except Exception as inst:
287 self.refersmf = True
288 self._exc(i, _(b"unpacking changeset %s") % short(n), inst)
289 progress.complete()
290 progress.complete()
290 return mflinkrevs, filelinkrevs
291 return mflinkrevs, filelinkrevs
291
292
General Comments 0
You need to be logged in to leave comments. Login now