mercurial/verify.py
changeset 42387 91452f62dd53
parent 42157 7755b89cadaf
child 43076 2372284d9457
equal deleted inserted replaced
42386:15d5a2de44aa 42387:91452f62dd53
    95             self._err(linkrev, _("empty or missing %s") % name)
    95             self._err(linkrev, _("empty or missing %s") % name)
    96             return
    96             return
    97 
    97 
    98         d = obj.checksize()
    98         d = obj.checksize()
    99         if d[0]:
    99         if d[0]:
   100             self.err(None, _("data length off by %d bytes") % d[0], name)
   100             self._err(None, _("data length off by %d bytes") % d[0], name)
   101         if d[1]:
   101         if d[1]:
   102             self.err(None, _("index contains %d extra bytes") % d[1], name)
   102             self._err(None, _("index contains %d extra bytes") % d[1], name)
   103 
   103 
   104         if obj.version != revlog.REVLOGV0:
   104         if obj.version != revlog.REVLOGV0:
   105             if not self.revlogv1:
   105             if not self.revlogv1:
   106                 self._warn(_("warning: `%s' uses revlog format 1") % name)
   106                 self._warn(_("warning: `%s' uses revlog format 1") % name)
   107         elif self.revlogv1:
   107         elif self.revlogv1: