mercurial/revlog.py
changeset 43024 188476e48f51
parent 42998 8a31294fa25c
child 43025 3518da504303
--- a/mercurial/revlog.py	Fri Sep 27 00:11:03 2019 +0200
+++ b/mercurial/revlog.py	Fri Sep 27 06:24:42 2019 +0200
@@ -363,10 +363,7 @@
             newversionflags = REVLOGV1 | FLAG_INLINE_DATA
             if 'generaldelta' in opts:
                 newversionflags |= FLAG_GENERALDELTA
-        elif getattr(self.opener, 'options', None) is not None:
-            # If options provided but no 'revlog*' found, the repository
-            # would have no 'requires' file in it, which means we have to
-            # stick to the old format.
+        elif 'revlogv0' in getattr(self.opener, 'options', {}):
             newversionflags = REVLOGV0
         else:
             newversionflags = REVLOG_DEFAULT_VERSION