equal
deleted
inserted
replaced
42 FEATURES_BY_VERSION, |
42 FEATURES_BY_VERSION, |
43 FLAG_GENERALDELTA, |
43 FLAG_GENERALDELTA, |
44 FLAG_INLINE_DATA, |
44 FLAG_INLINE_DATA, |
45 INDEX_HEADER, |
45 INDEX_HEADER, |
46 KIND_CHANGELOG, |
46 KIND_CHANGELOG, |
|
47 KIND_FILELOG, |
47 RANK_UNKNOWN, |
48 RANK_UNKNOWN, |
48 REVLOGV0, |
49 REVLOGV0, |
49 REVLOGV1, |
50 REVLOGV1, |
50 REVLOGV1_FLAGS, |
51 REVLOGV1_FLAGS, |
51 REVLOGV2, |
52 REVLOGV2, |
650 return self.target[0] |
651 return self.target[0] |
651 |
652 |
652 @util.propertycache |
653 @util.propertycache |
653 def display_id(self): |
654 def display_id(self): |
654 """The public facing "ID" of the revlog that we use in message""" |
655 """The public facing "ID" of the revlog that we use in message""" |
655 # Maybe we should build a user facing representation of |
656 if self.revlog_kind == KIND_FILELOG: |
656 # revlog.target instead of using `self.radix` |
657 # Reference the file without the "data/" prefix, so it is familiar |
657 return self.radix |
658 # to the user. |
|
659 return self.target[1] |
|
660 else: |
|
661 return self.radix |
658 |
662 |
659 def _get_decompressor(self, t): |
663 def _get_decompressor(self, t): |
660 try: |
664 try: |
661 compressor = self._decompressors[t] |
665 compressor = self._decompressors[t] |
662 except KeyError: |
666 except KeyError: |