comparison mercurial/manifest.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 f7b61ad3c64a
children 45f0d5297698
comparison
equal deleted inserted replaced
46713:bc2519513ae0 46714:f63299ee7e4d
1608 ) 1608 )
1609 1609
1610 self.index = self._revlog.index 1610 self.index = self._revlog.index
1611 self.version = self._revlog.version 1611 self.version = self._revlog.version
1612 self._generaldelta = self._revlog._generaldelta 1612 self._generaldelta = self._revlog._generaldelta
1613 self._revlog.revlog_kind = b'manifest'
1613 1614
1614 def _setupmanifestcachehooks(self, repo): 1615 def _setupmanifestcachehooks(self, repo):
1615 """Persist the manifestfulltextcache on lock release""" 1616 """Persist the manifestfulltextcache on lock release"""
1616 if not util.safehasattr(repo, b'_wlockref'): 1617 if not util.safehasattr(repo, b'_wlockref'):
1617 return 1618 return