mercurial/manifest.py
changeset 11962 5f7ee3db3dd8
parent 11934 cf858e76e992
child 12011 f38b0a3308b6
--- a/mercurial/manifest.py	Thu Aug 19 13:25:46 2010 +0200
+++ b/mercurial/manifest.py	Wed Aug 18 19:45:52 2010 +0200
@@ -188,11 +188,7 @@
             if dstart != None:
                 delta.append([dstart, dend, "".join(dline)])
             # apply the delta to the addlist, and get a delta for addrevision
-            cachedelta = addlistdelta(addlist, delta)
-
-            # the delta is only valid if we've been processing the tip revision
-            if p1 != self.tip():
-                cachedelta = None
+            cachedelta = (self.rev(p1), addlistdelta(addlist, delta))
             arraytext = addlist
             text = buffer(arraytext)