Mercurial > public > mercurial-scm > hg-stable
diff mercurial/bundlerepo.py @ 31835:4bafc80f827e
bundlerepo: build revlog index with flags
This fixes bundlerevlog.flags(rev) for any revisions provided by the bundle.
Now test-flagprocessor.t points us to another issue.
author | Jun Wu <quark@fb.com> |
---|---|
date | Thu, 06 Apr 2017 18:06:42 -0700 |
parents | 433ab46f6bb4 |
children | 4598e8f43e20 |
line wrap: on
line diff
--- 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