equal
deleted
inserted
replaced
419 the underlying revision storage object |
419 the underlying revision storage object |
420 |
420 |
421 A revlog consists of two parts, an index and the revision data. |
421 A revlog consists of two parts, an index and the revision data. |
422 |
422 |
423 The index is a file with a fixed record size containing |
423 The index is a file with a fixed record size containing |
424 information on each revision, includings its nodeid (hash), the |
424 information on each revision, including its nodeid (hash), the |
425 nodeids of its parents, the position and offset of its data within |
425 nodeids of its parents, the position and offset of its data within |
426 the data file, and the revision it's based on. Finally, each entry |
426 the data file, and the revision it's based on. Finally, each entry |
427 contains a linkrev entry that can serve as a pointer to external |
427 contains a linkrev entry that can serve as a pointer to external |
428 data. |
428 data. |
429 |
429 |
940 |
940 |
941 return mdiff.textdiff(self.revision(self.node(rev1)), |
941 return mdiff.textdiff(self.revision(self.node(rev1)), |
942 self.revision(self.node(rev2))) |
942 self.revision(self.node(rev2))) |
943 |
943 |
944 def revision(self, node): |
944 def revision(self, node): |
945 """return an uncompressed revision of a given""" |
945 """return an uncompressed revision of a given node""" |
946 if node == nullid: |
946 if node == nullid: |
947 return "" |
947 return "" |
948 if self._cache and self._cache[0] == node: |
948 if self._cache and self._cache[0] == node: |
949 return str(self._cache[2]) |
949 return str(self._cache[2]) |
950 |
950 |