changeset 2106:b03de24ee2ec

Merge with crew
author Matt Mackall <mpm@selenic.com>
date Thu, 20 Apr 2006 12:13:54 -0500
parents 21cf3fe64e27 (diff) f1085d34d20d (current diff)
children 7ff92c04f8e5 25a8d116ab6a
files
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/bundlerepo.py	Thu Apr 20 16:33:49 2006 +0200
+++ b/mercurial/bundlerepo.py	Thu Apr 20 12:13:54 2006 -0500
@@ -59,7 +59,11 @@
             if not prev:
                 prev = p1
             # start, size, base is not used, link, p1, p2, delta ref
-            e = (start, size, None, link, p1, p2, node)
+            if self.version == 0:
+                e = (start, size, None, link, p1, p2, node)
+            else:
+                e = (self.offset_type(start, 0), size, -1, None, link,
+                     self.rev(p1), self.rev(p2), node)
             self.basemap[n] = prev
             self.index.append(e)
             self.nodemap[node] = n