mercurial/changelog.py
changeset 47139 f58a13c52726
parent 47073 64cd1496bb70
child 47145 c6b8d5d91e73
--- a/mercurial/changelog.py	Mon May 03 12:20:35 2021 +0200
+++ b/mercurial/changelog.py	Mon May 03 12:20:45 2021 +0200
@@ -413,10 +413,10 @@
             concurrencychecker=concurrencychecker,
         )
 
-        if self._initempty and (self.version & 0xFFFF == revlog.REVLOGV1):
+        if self._initempty and (self._format_version == revlog.REVLOGV1):
             # changelogs don't benefit from generaldelta.
 
-            self.version &= ~revlog.FLAG_GENERALDELTA
+            self._format_flags &= ~revlog.FLAG_GENERALDELTA
             self._generaldelta = False
 
         # Delta chains for changelogs tend to be very small because entries