--- a/mercurial/bundlerepo.py Thu Apr 06 17:43:29 2017 -0700
+++ b/mercurial/bundlerepo.py Thu Apr 06 18:06:42 2017 -0700
@@ -65,6 +65,7 @@
cs = chunkdata['cs']
deltabase = chunkdata['deltabase']
delta = chunkdata['delta']
+ flags = chunkdata['flags']
size = len(delta)
start = bundle.tell() - size
@@ -87,7 +88,7 @@
baserev = self.rev(deltabase)
# start, size, full unc. size, base (unused), link, p1, p2, node
- e = (revlog.offset_type(start, 0), size, -1, baserev, link,
+ e = (revlog.offset_type(start, flags), size, -1, baserev, link,
self.rev(p1), self.rev(p2), node)
self.index.insert(-1, e)
self.nodemap[node] = n