##// END OF EJS Templates
revlog: add attribute on revlogs that specifies its kind...
Raphaël Gomès -
r47833:f63299ee default
parent child Browse files
Show More
@@ -428,6 +428,7 b' class changelog(revlog.revlog):'
428 428 self._filteredrevs = frozenset()
429 429 self._filteredrevs_hashcache = {}
430 430 self._copiesstorage = opener.options.get(b'copies-storage')
431 self.revlog_kind = b'changelog'
431 432
432 433 @property
433 434 def filteredrevs(self):
@@ -32,6 +32,7 b' class filelog(object):'
32 32 # Full name of the user visible file, relative to the repository root.
33 33 # Used by LFS.
34 34 self._revlog.filename = path
35 self._revlog.revlog_kind = b'filelog'
35 36
36 37 def __len__(self):
37 38 return len(self._revlog)
@@ -1610,6 +1610,7 b' class manifestrevlog(object):'
1610 1610 self.index = self._revlog.index
1611 1611 self.version = self._revlog.version
1612 1612 self._generaldelta = self._revlog._generaldelta
1613 self._revlog.revlog_kind = b'manifest'
1613 1614
1614 1615 def _setupmanifestcachehooks(self, repo):
1615 1616 """Persist the manifestfulltextcache on lock release"""
General Comments 0
You need to be logged in to leave comments. Login now