Show More
@@ -35,7 +35,8 b' class manifest(revlog):' | |||
|
35 | 35 | return mfdict |
|
36 | 36 | |
|
37 | 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 | 41 | def read(self, node): |
|
41 | 42 | if node == nullid: return manifestdict() # don't upset local cache |
@@ -941,11 +941,6 b' class revlog(object):' | |||
|
941 | 941 | |
|
942 | 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 | 944 | def revdiff(self, rev1, rev2): |
|
950 | 945 | """return or calculate a delta between two revisions""" |
|
951 | 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