diff mercurial/verify.py @ 7675:011e69b96c69

verify: don't trip over binary files starting with 01 0a
author Matt Mackall <mpm@selenic.com>
date Wed, 21 Jan 2009 11:15:47 -0600
parents 9fe97eea5510
children 43cfbb21f04d
line wrap: on
line diff
--- 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: