manifest: correct readdelta() according to parentdeltas
authorPradeepkumar Gayam <in3xes@gmail.com>
Tue, 10 Aug 2010 22:28:52 +0530
changeset 11934 cf858e76e992
parent 11933 293afcfb66a8
child 11935 927ada259634
manifest: correct readdelta() according to parentdeltas
mercurial/manifest.py
--- a/mercurial/manifest.py	Tue Aug 10 22:28:30 2010 +0530
+++ b/mercurial/manifest.py	Tue Aug 10 22:28:52 2010 +0530
@@ -36,6 +36,8 @@
 
     def readdelta(self, node):
         r = self.rev(node)
+        if self._parentdelta:
+            return self.parse(mdiff.patchtext(self.revdiff(self.deltaparent(r), r)))
         return self.parse(mdiff.patchtext(self.revdiff(r - 1, r)))
 
     def read(self, node):