verify: don't trip over binary files starting with 01 0a
authorMatt Mackall <mpm@selenic.com>
Wed, 21 Jan 2009 11:15:47 -0600
changeset 7675 011e69b96c69
parent 7673 af4871b73be7
child 7676 43cfbb21f04d
child 7689 d821ea464465
child 7708 a32847fa0df0
verify: don't trip over binary files starting with 01 0a
mercurial/verify.py
--- a/mercurial/verify.py	Thu Jan 15 01:38:52 2009 +0100
+++ b/mercurial/verify.py	Wed Jan 21 11:15:47 2009 -0600
@@ -197,7 +197,7 @@
                 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: