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