equal
deleted
inserted
replaced
1107 revlog and data is a str or buffer of the raw byte data. |
1107 revlog and data is a str or buffer of the raw byte data. |
1108 |
1108 |
1109 Callers will need to call ``self.start(rev)`` and ``self.length(rev)`` |
1109 Callers will need to call ``self.start(rev)`` and ``self.length(rev)`` |
1110 to determine where each revision's data begins and ends. |
1110 to determine where each revision's data begins and ends. |
1111 """ |
1111 """ |
1112 start = self.start(startrev) |
1112 # Inlined self.start(startrev) & self.end(endrev) for perf reasons |
1113 end = self.end(endrev) |
1113 # (functions are expensive). |
|
1114 index = self.index |
|
1115 istart = index[startrev] |
|
1116 iend = index[endrev] |
|
1117 start = int(istart[0] >> 16) |
|
1118 end = int(iend[0] >> 16) + iend[1] |
|
1119 |
1114 if self._inline: |
1120 if self._inline: |
1115 start += (startrev + 1) * self._io.size |
1121 start += (startrev + 1) * self._io.size |
1116 end += (endrev + 1) * self._io.size |
1122 end += (endrev + 1) * self._io.size |
1117 length = end - start |
1123 length = end - start |
1118 |
1124 |