Mercurial > hg
comparison mercurial/changelog.py @ 46714:f63299ee7e4d
revlog: add attribute on revlogs that specifies its kind
The sidedata logic needs to check whether the revlog it's working on is a
changelog, a manifest or a filelog.
Furthermore, future versions of the revlog format will most likely see a split
between the three types (i.e. they will store different information), so having
this will be useful for other future endeavors as well.
Differential Revision: https://phab.mercurial-scm.org/D10151
author | Raphaël Gomès <rgomes@octobus.net> |
---|---|
date | Wed, 10 Mar 2021 19:33:18 +0100 |
parents | 230f73019e49 |
children | 6266d19556ad |
comparison
equal
deleted
inserted
replaced
46713:bc2519513ae0 | 46714:f63299ee7e4d |
---|---|
426 self._delaybuf = None | 426 self._delaybuf = None |
427 self._divert = False | 427 self._divert = False |
428 self._filteredrevs = frozenset() | 428 self._filteredrevs = frozenset() |
429 self._filteredrevs_hashcache = {} | 429 self._filteredrevs_hashcache = {} |
430 self._copiesstorage = opener.options.get(b'copies-storage') | 430 self._copiesstorage = opener.options.get(b'copies-storage') |
431 self.revlog_kind = b'changelog' | |
431 | 432 |
432 @property | 433 @property |
433 def filteredrevs(self): | 434 def filteredrevs(self): |
434 return self._filteredrevs | 435 return self._filteredrevs |
435 | 436 |