mercurial/revlog.py
changeset 14143 da635d3c5620
parent 14141 bd1cbfe5db5c
child 14144 3c3c53d8343a
--- a/mercurial/revlog.py	Sat Apr 30 10:41:06 2011 +0200
+++ b/mercurial/revlog.py	Sat Apr 30 11:03:28 2011 +0200
@@ -1086,17 +1086,8 @@
 
         # build deltas
         for r in xrange(len(revs) - 1):
-            a, b = revs[r], revs[r + 1]
-            nb = self.node(b)
-            p1, p2 = self.parents(nb)
-            prefix = ''
-
-            if a == nullrev:
-                d = self.revision(nb)
-                prefix = mdiff.trivialdiffheader(len(d))
-            else:
-                d = self.revdiff(a, b)
-            for c in bundler.revchunk(self, nb, p1, p2, prefix, d):
+            prev, curr = revs[r], revs[r + 1]
+            for c in bundler.revchunk(self, curr, prev):
                 yield c
 
         yield bundler.close()