Show More
@@ -69,7 +69,7 b' class verifier(object):' | |||
|
69 | 69 | self.ui.warn(" " + msg + "\n") |
|
70 | 70 | self.errors += 1 |
|
71 | 71 | |
|
72 | def exc(self, linkrev, msg, inst, filename=None): | |
|
72 | def _exc(self, linkrev, msg, inst, filename=None): | |
|
73 | 73 | """record exception raised during the verify process""" |
|
74 | 74 | fmsg = pycompat.bytestr(inst) |
|
75 | 75 | if not fmsg: |
@@ -122,7 +122,7 b' class verifier(object):' | |||
|
122 | 122 | self._err(lr, _("unknown parent 2 %s of %s") % |
|
123 | 123 | (short(p2), short(node)), f) |
|
124 | 124 | except Exception as inst: |
|
125 | self.exc(lr, _("checking parents of %s") % short(node), inst, f) | |
|
125 | self._exc(lr, _("checking parents of %s") % short(node), inst, f) | |
|
126 | 126 | |
|
127 | 127 | if node in seen: |
|
128 | 128 | self._err(lr, _("duplicate revision %d (%d)") % (i, seen[node]), f) |
@@ -195,7 +195,7 b' class verifier(object):' | |||
|
195 | 195 | filelinkrevs.setdefault(_normpath(f), []).append(i) |
|
196 | 196 | except Exception as inst: |
|
197 | 197 | self.refersmf = True |
|
198 | self.exc(i, _("unpacking changeset %s") % short(n), inst) | |
|
198 | self._exc(i, _("unpacking changeset %s") % short(n), inst) | |
|
199 | 199 | progress.complete() |
|
200 | 200 | return mflinkrevs, filelinkrevs |
|
201 | 201 | |
@@ -257,7 +257,7 b' class verifier(object):' | |||
|
257 | 257 | continue |
|
258 | 258 | filenodes.setdefault(fullpath, {}).setdefault(fn, lr) |
|
259 | 259 | except Exception as inst: |
|
260 | self.exc(lr, _("reading delta %s") % short(n), inst, label) | |
|
260 | self._exc(lr, _("reading delta %s") % short(n), inst, label) | |
|
261 | 261 | if not dir: |
|
262 | 262 | progress.complete() |
|
263 | 263 | |
@@ -443,7 +443,8 b' class verifier(object):' | |||
|
443 | 443 | else: |
|
444 | 444 | fl2.rev(rp[1]) |
|
445 | 445 | except Exception as inst: |
|
446 |
self.exc(lr, _("checking rename of %s") % short(n), |
|
|
446 | self._exc(lr, _("checking rename of %s") % short(n), | |
|
447 | inst, f) | |
|
447 | 448 | |
|
448 | 449 | # cross-check |
|
449 | 450 | if f in filenodes: |
General Comments 0
You need to be logged in to leave comments.
Login now