mercurial/changelog.py
changeset 47139 f58a13c52726
parent 47073 64cd1496bb70
child 47145 c6b8d5d91e73
equal deleted inserted replaced
47138:bc138f2a2e47 47139:f58a13c52726
   411             mmaplargeindex=True,
   411             mmaplargeindex=True,
   412             persistentnodemap=opener.options.get(b'persistent-nodemap', False),
   412             persistentnodemap=opener.options.get(b'persistent-nodemap', False),
   413             concurrencychecker=concurrencychecker,
   413             concurrencychecker=concurrencychecker,
   414         )
   414         )
   415 
   415 
   416         if self._initempty and (self.version & 0xFFFF == revlog.REVLOGV1):
   416         if self._initempty and (self._format_version == revlog.REVLOGV1):
   417             # changelogs don't benefit from generaldelta.
   417             # changelogs don't benefit from generaldelta.
   418 
   418 
   419             self.version &= ~revlog.FLAG_GENERALDELTA
   419             self._format_flags &= ~revlog.FLAG_GENERALDELTA
   420             self._generaldelta = False
   420             self._generaldelta = False
   421 
   421 
   422         # Delta chains for changelogs tend to be very small because entries
   422         # Delta chains for changelogs tend to be very small because entries
   423         # tend to be small and don't delta well with each. So disable delta
   423         # tend to be small and don't delta well with each. So disable delta
   424         # chains.
   424         # chains.