changeset 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 af4871b73be7
children 43cfbb21f04d d821ea464465 a32847fa0df0
files mercurial/verify.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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: