# HG changeset patch # User Matt Mackall <mpm@selenic.com> # Date 2009-01-21 17:15:47 # Node ID 011e69b96c69ca05463eed8306cfb24348483d5b # Parent af4871b73be720d1d488aca51ba151b08fabb0da verify: don't trip over binary files starting with 01 0a diff --git a/mercurial/verify.py b/mercurial/verify.py --- a/mercurial/verify.py +++ b/mercurial/verify.py @@ -197,7 +197,7 @@ def _verify(repo): t = fl.read(n) rp = fl.renamed(n) if len(t) != fl.size(i): - if not fl._readmeta(n): # ancient copy? + if len(fl.revision(n)) != fl.size(i): err(lr, _("unpacked size is %s, %s expected") % (len(t), fl.size(i)), f) except Exception, inst: