comparison mercurial/changelog.py @ 32315:67026d65a4fc

revlog: rename constants (API) Feature flag constants don't need "NG" in the name because they will presumably apply to non-"NG" version revlogs. All feature flag constants should also share a similar naming convention to identify them as such. And, "RevlogNG" isn't a great internal name since it isn't obvious it maps to version 1 revlogs. Plus, "NG" (next generation) is only a good name as long as it is the latest version. Since we're talking about version 2, now is as good a time as any to move on from that naming.
author Gregory Szorc <gregory.szorc@gmail.com>
date Wed, 17 May 2017 19:52:18 -0700
parents 3caec778774b
children 3939b30d0cb7
comparison
equal deleted inserted replaced
32314:9f35c7836f60 32315:67026d65a4fc
277 revlog.revlog.__init__(self, opener, indexfile, datafile=datafile, 277 revlog.revlog.__init__(self, opener, indexfile, datafile=datafile,
278 checkambig=True) 278 checkambig=True)
279 279
280 if self._initempty: 280 if self._initempty:
281 # changelogs don't benefit from generaldelta 281 # changelogs don't benefit from generaldelta
282 self.version &= ~revlog.REVLOGGENERALDELTA 282 self.version &= ~revlog.FLAG_GENERALDELTA
283 self._generaldelta = False 283 self._generaldelta = False
284 284
285 # Delta chains for changelogs tend to be very small because entries 285 # Delta chains for changelogs tend to be very small because entries
286 # tend to be small and don't delta well with each. So disable delta 286 # tend to be small and don't delta well with each. So disable delta
287 # chains. 287 # chains.