Show More
@@ -147,9 +147,9 b' class verifier(object):' | |||||
147 | mflinkrevs, filelinkrevs = self._verifychangelog() |
|
147 | mflinkrevs, filelinkrevs = self._verifychangelog() | |
148 |
|
148 | |||
149 | filenodes = self._verifymanifest(mflinkrevs) |
|
149 | filenodes = self._verifymanifest(mflinkrevs) | |
|
150 | del mflinkrevs | |||
150 |
|
151 | |||
151 |
self._crosscheckfiles( |
|
152 | self._crosscheckfiles(filelinkrevs, filenodes) | |
152 | del mflinkrevs |
|
|||
153 |
|
153 | |||
154 | totalfiles, filerevisions = self._verifyfiles(filenodes, filelinkrevs) |
|
154 | totalfiles, filerevisions = self._verifyfiles(filenodes, filelinkrevs) | |
155 |
|
155 | |||
@@ -232,25 +232,24 b' class verifier(object):' | |||||
232 | self.exc(lr, _("reading manifest delta %s") % short(n), inst) |
|
232 | self.exc(lr, _("reading manifest delta %s") % short(n), inst) | |
233 | ui.progress(_('checking'), None) |
|
233 | ui.progress(_('checking'), None) | |
234 |
|
234 | |||
|
235 | if self.havemf: | |||
|
236 | for c, m in sorted([(c, m) for m in mflinkrevs | |||
|
237 | for c in mflinkrevs[m]]): | |||
|
238 | if m == nullid: | |||
|
239 | continue | |||
|
240 | self.err(c, _("changeset refers to unknown manifest %s") % | |||
|
241 | short(m)) | |||
|
242 | ||||
235 | return filenodes |
|
243 | return filenodes | |
236 |
|
244 | |||
237 |
def _crosscheckfiles(self, |
|
245 | def _crosscheckfiles(self, filelinkrevs, filenodes): | |
238 | repo = self.repo |
|
246 | repo = self.repo | |
239 | ui = self.ui |
|
247 | ui = self.ui | |
240 | ui.status(_("crosschecking files in changesets and manifests\n")) |
|
248 | ui.status(_("crosschecking files in changesets and manifests\n")) | |
241 |
|
249 | |||
242 |
total = |
|
250 | total = len(filelinkrevs) + len(filenodes) | |
243 | count = 0 |
|
251 | count = 0 | |
244 | if self.havemf: |
|
252 | if self.havemf: | |
245 | for c, m in sorted([(c, m) for m in mflinkrevs |
|
|||
246 | for c in mflinkrevs[m]]): |
|
|||
247 | count += 1 |
|
|||
248 | if m == nullid: |
|
|||
249 | continue |
|
|||
250 | ui.progress(_('crosschecking'), count, total=total) |
|
|||
251 | self.err(c, _("changeset refers to unknown manifest %s") % |
|
|||
252 | short(m)) |
|
|||
253 |
|
||||
254 | for f in sorted(filelinkrevs): |
|
253 | for f in sorted(filelinkrevs): | |
255 | count += 1 |
|
254 | count += 1 | |
256 | ui.progress(_('crosschecking'), count, total=total) |
|
255 | ui.progress(_('crosschecking'), count, total=total) |
General Comments 0
You need to be logged in to leave comments.
Login now