changeset 1660:b2df93c56ac4

Fix revlog signature check for empty revlogs
author Matt Mackall <mpm@selenic.com>
date Sun, 29 Jan 2006 20:30:41 +1300
parents bfa90d9a3b77
children b11507d6d16d d529cdc0a3ee
files mercurial/revlog.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/revlog.py	Sun Jan 29 20:27:58 2006 +1300
+++ b/mercurial/revlog.py	Sun Jan 29 20:30:41 2006 +1300
@@ -197,7 +197,7 @@
                 raise
             i = ""
 
-        if i[:4] != "\0\0\0\0":
+        if i and i[:4] != "\0\0\0\0":
             raise RevlogError(_("incompatible revlog signature on %s") %
                               self.indexfile)