equal
deleted
inserted
replaced
33 mfdict = manifestdict() |
33 mfdict = manifestdict() |
34 parsers.parse_manifest(mfdict, mfdict._flags, lines) |
34 parsers.parse_manifest(mfdict, mfdict._flags, lines) |
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 |
42 if self.mapcache and self.mapcache[0] == node: |
43 if self.mapcache and self.mapcache[0] == node: |
43 return self.mapcache[1] |
44 return self.mapcache[1] |