mercurial/revlog.py
changeset 14333 31a5973fcf96
parent 14325 f9e91a400c16
child 14334 85c82ebc96a3
--- a/mercurial/revlog.py	Mon May 16 11:52:28 2011 +0200
+++ b/mercurial/revlog.py	Mon May 16 12:44:34 2011 +0200
@@ -227,12 +227,11 @@
 
         v = REVLOG_DEFAULT_VERSION
         if hasattr(opener, 'options'):
-            if 'defversion' in opener.options:
-                v = opener.options['defversion']
-                if v & REVLOGNG:
-                    v |= REVLOGNGINLINEDATA
-            if v & REVLOGNG and 'generaldelta' in opener.options:
-                v |= REVLOGGENERALDELTA
+            if 'revlogv1' in opener.options:
+                if 'generaldelta' in opener.options:
+                    v |= REVLOGGENERALDELTA
+            else:
+                v = 0
 
         i = ''
         try: