changeset 4302:d69bdc1091b8

Fixups for recent changes in revlog version handling
author Matt Mackall <mpm@selenic.com>
date Mon, 02 Apr 2007 14:16:44 -0500
parents f344440fdcb0
children 09c5f734ff6a d4f0405fadac
files mercurial/revlog.py
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/revlog.py	Tue Mar 27 01:41:25 2007 -0300
+++ b/mercurial/revlog.py	Mon Apr 02 14:16:44 2007 -0500
@@ -26,11 +26,6 @@
 REVLOG_DEFAULT_FORMAT = REVLOGNG
 REVLOG_DEFAULT_VERSION = REVLOG_DEFAULT_FORMAT | REVLOG_DEFAULT_FLAGS
 
-def flagstr(flag):
-    if flag == "inline":
-        return REVLOGNGINLINEDATA
-    raise RevlogError(_("unknown revlog flag %s") % flag)
-
 def hash(text, p1, p2):
     """generate a hash from the given text and its parent hashes
 
@@ -328,6 +323,8 @@
         self.defversion = REVLOG_DEFAULT_VERSION
         if hasattr(opener, "defversion"):
             self.defversion = opener.defversion
+            if self.defversion & REVLOGNG:
+                self.defversion |= REVLOGNGINLINEDATA
         self.load()
 
     def load(self):