mercurial/changelog.py
changeset 41202 e7a2cc84dbc0
parent 39887 a3095bc47217
child 41275 1421d0487a61
--- a/mercurial/changelog.py	Wed Jan 09 15:45:17 2019 -0800
+++ b/mercurial/changelog.py	Wed Jan 09 17:41:36 2019 -0800
@@ -295,8 +295,9 @@
         revlog.revlog.__init__(self, opener, indexfile, datafile=datafile,
                                checkambig=True, mmaplargeindex=True)
 
-        if self._initempty:
-            # changelogs don't benefit from generaldelta
+        if self._initempty and (self.version & 0xFFFF == revlog.REVLOGV1):
+            # changelogs don't benefit from generaldelta.
+
             self.version &= ~revlog.FLAG_GENERALDELTA
             self._generaldelta = False