mercurial/manifest.py
changeset 7362 6db4a2ccef3a
parent 6765 be142cb994ff
child 7405 f1944e74e83c
equal deleted inserted replaced
7361:9fe97eea5510 7362:6db4a2ccef3a
    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]