Show More
@@ -35,7 +35,8 b' class manifest(revlog):' | |||||
35 | return mfdict |
|
35 | return mfdict | |
36 |
|
36 | |||
37 | def readdelta(self, node): |
|
37 | def readdelta(self, node): | |
38 | return self.parse(mdiff.patchtext(self.delta(node))) |
|
38 | r = self.rev(node) | |
|
39 | return self.parse(mdiff.patchtext(self.revdiff(r - 1, r))) | |||
39 |
|
40 | |||
40 | def read(self, node): |
|
41 | def read(self, node): | |
41 | if node == nullid: return manifestdict() # don't upset local cache |
|
42 | if node == nullid: return manifestdict() # don't upset local cache |
@@ -941,11 +941,6 b' class revlog(object):' | |||||
941 |
|
941 | |||
942 | return decompress(c) |
|
942 | return decompress(c) | |
943 |
|
943 | |||
944 | def delta(self, node): |
|
|||
945 | """return or calculate a delta between a node and its predecessor""" |
|
|||
946 | r = self.rev(node) |
|
|||
947 | return self.revdiff(r - 1, r) |
|
|||
948 |
|
||||
949 | def revdiff(self, rev1, rev2): |
|
944 | def revdiff(self, rev1, rev2): | |
950 | """return or calculate a delta between two revisions""" |
|
945 | """return or calculate a delta between two revisions""" | |
951 | if rev1 + 1 == rev2 and self.base(rev1) == self.base(rev2): |
|
946 | if rev1 + 1 == rev2 and self.base(rev1) == self.base(rev2): |
General Comments 0
You need to be logged in to leave comments.
Login now