##// END OF EJS Templates
revlog: apply compression mode while reading sidedata...
marmoute -
r48031:87d05713 default
parent child Browse files
Show More
@@ -2061,7 +2061,19 b' class revlog(object):'
2061 2061 if sidedata_size == 0:
2062 2062 return {}
2063 2063
2064 segment = self._getsegment(sidedata_offset, sidedata_size)
2064 comp_segment = self._getsegment(sidedata_offset, sidedata_size)
2065 comp = self.index[rev][11]
2066 if comp == COMP_MODE_PLAIN:
2067 segment = comp_segment
2068 elif comp == COMP_MODE_DEFAULT:
2069 segment = self._decompressor(comp_segment)
2070 elif comp == COMP_MODE_INLINE:
2071 segment = self.decompress(comp_segment)
2072 else:
2073 msg = 'unknown compression mode %d'
2074 msg %= comp
2075 raise error.RevlogError(msg)
2076
2065 2077 sidedata = sidedatautil.deserialize_sidedata(segment)
2066 2078 return sidedata
2067 2079
General Comments 0
You need to be logged in to leave comments. Login now