mercurial/verify.py
changeset 7676 43cfbb21f04d
parent 7622 4dd7b28003d2
parent 7675 011e69b96c69
child 7832 1fce19b9b011
equal deleted inserted replaced
7674:4d63b10a602e 7676:43cfbb21f04d
   195             # verify contents
   195             # verify contents
   196             try:
   196             try:
   197                 t = fl.read(n)
   197                 t = fl.read(n)
   198                 rp = fl.renamed(n)
   198                 rp = fl.renamed(n)
   199                 if len(t) != fl.size(i):
   199                 if len(t) != fl.size(i):
   200                     if not fl._readmeta(n): # ancient copy?
   200                     if len(fl.revision(n)) != fl.size(i):
   201                         err(lr, _("unpacked size is %s, %s expected") %
   201                         err(lr, _("unpacked size is %s, %s expected") %
   202                             (len(t), fl.size(i)), f)
   202                             (len(t), fl.size(i)), f)
   203             except Exception, inst:
   203             except Exception, inst:
   204                 exc(lr, _("unpacking %s") % short(n), inst, f)
   204                 exc(lr, _("unpacking %s") % short(n), inst, f)
   205 
   205