comparison mercurial/verify.py @ 41865:5df8475c5343

verify: document the `exc` method Simple method, get simple documentation.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 06 Mar 2019 11:31:10 +0100
parents 7eaf4b1ac2a3
children cfe08588d711
comparison
equal deleted inserted replaced
41864:7eaf4b1ac2a3 41865:5df8475c5343
68 msg = "%s@%s" % (filename, msg) 68 msg = "%s@%s" % (filename, msg)
69 self.ui.warn(" " + msg + "\n") 69 self.ui.warn(" " + msg + "\n")
70 self.errors += 1 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 """record exception raised during the verify process"""
73 fmsg = pycompat.bytestr(inst) 74 fmsg = pycompat.bytestr(inst)
74 if not fmsg: 75 if not fmsg:
75 fmsg = pycompat.byterepr(inst) 76 fmsg = pycompat.byterepr(inst)
76 self._err(linkrev, "%s: %s" % (msg, fmsg), filename) 77 self._err(linkrev, "%s: %s" % (msg, fmsg), filename)
77 78