##// END OF EJS Templates
store: introduce boolean property for revlog type...
marmoute -
r51390:66c55696 default
parent child Browse files
Show More
@@ -521,6 +521,18 b' class RevlogStoreEntry(BaseStoreEntry):'
521 assert b'.i' in details, (path_prefix, details)
521 assert b'.i' in details, (path_prefix, details)
522 self._details = details
522 self._details = details
523
523
524 @property
525 def is_changelog(self):
526 return self.revlog_type & FILEFLAGS_CHANGELOG
527
528 @property
529 def is_manifestlog(self):
530 return self.revlog_type & FILEFLAGS_MANIFESTLOG
531
532 @property
533 def is_filelog(self):
534 return self.revlog_type & FILEFLAGS_FILELOG
535
524 def main_file_path(self):
536 def main_file_path(self):
525 """unencoded path of the main revlog file"""
537 """unencoded path of the main revlog file"""
526 return self._path_prefix + b'.i'
538 return self._path_prefix + b'.i'
General Comments 0
You need to be logged in to leave comments. Login now