changeset 10395:ea52a2d4f42c

revlog: don't silently discard revlog flags on revlogv0
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Mon, 08 Feb 2010 17:28:19 +0100
parents 4612cded5176
children 65a90c8e11ee
files mercurial/revlog.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/revlog.py	Mon Feb 08 15:36:34 2010 +0100
+++ b/mercurial/revlog.py	Mon Feb 08 17:28:19 2010 +0100
@@ -343,6 +343,8 @@
         return index, nodemap, None
 
     def packentry(self, entry, node, version, rev):
+        if gettype(entry[0]):
+            raise RevlogError(_("index entry flags need RevlogNG"))
         e2 = (getoffset(entry[0]), entry[1], entry[3], entry[4],
               node(entry[5]), node(entry[6]), entry[7])
         return _pack(indexformatv0, *e2)