diff mercurial/verify.py @ 12170:581066a319e5 stable

verify: fix "missing revlog!" errors for revlog format v0 and add test With revlog format v0 the .d files are empty if the only revision stored is an empty file. Since Mercurial can no longer create format v0 repositories, but still use it, add a script which creates a repository with a single empty file. This can be used in other tests if wanted.
author Thomas Arendsen Hein <thomas@intevation.de>
date Sun, 05 Sep 2010 22:32:11 +0200
parents 0299240b849b
children 5a1912b5aa42
line wrap: on
line diff
--- a/mercurial/verify.py	Thu Sep 02 22:38:12 2010 +0200
+++ b/mercurial/verify.py	Sun Sep 05 22:32:11 2010 +0200
@@ -199,7 +199,7 @@
     for f, f2, size in repo.store.datafiles():
         if not f:
             err(None, _("cannot decode filename '%s'") % f2)
-        elif size > 0:
+        elif size > 0 or not revlogv1:
             storefiles.add(f)
 
     files = sorted(set(filenodes) | set(filelinkrevs))