Details
Details
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
( )
Lint Skipped |
Unit Tests Skipped |
Path | Packages | |||
---|---|---|---|---|
M | mercurial/bundlerepo.py (6 lines) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
bde85d8183aa | 9365147a8f11 | Pierre-Yves David | Nov 8 2019, 7:24 AM |
Status | Author | Revision | |
---|---|---|---|
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute |
self.bundlerevs = set() # used by 'bundle()' revset expression | self.bundlerevs = set() # used by 'bundle()' revset expression | ||||
for deltadata in cgunpacker.deltaiter(): | for deltadata in cgunpacker.deltaiter(): | ||||
node, p1, p2, cs, deltabase, delta, flags = deltadata | node, p1, p2, cs, deltabase, delta, flags = deltadata | ||||
size = len(delta) | size = len(delta) | ||||
start = cgunpacker.tell() - size | start = cgunpacker.tell() - size | ||||
link = linkmapper(cs) | link = linkmapper(cs) | ||||
if node in self.nodemap: | if self.index.has_node(node): | ||||
# this can happen if two branches make the same change | # this can happen if two branches make the same change | ||||
self.bundlerevs.add(self.nodemap[node]) | self.bundlerevs.add(self.nodemap[node]) | ||||
continue | continue | ||||
for p in (p1, p2): | for p in (p1, p2): | ||||
if p not in self.nodemap: | if not self.index.has_node(p): | ||||
raise error.LookupError( | raise error.LookupError( | ||||
p, self.indexfile, _(b"unknown parent") | p, self.indexfile, _(b"unknown parent") | ||||
) | ) | ||||
if deltabase not in self.nodemap: | if not self.index.has_node(deltabase): | ||||
raise LookupError( | raise LookupError( | ||||
deltabase, self.indexfile, _(b'unknown delta base') | deltabase, self.indexfile, _(b'unknown delta base') | ||||
) | ) | ||||
baserev = self.rev(deltabase) | baserev = self.rev(deltabase) | ||||
# start, size, full unc. size, base (unused), link, p1, p2, node | # start, size, full unc. size, base (unused), link, p1, p2, node | ||||
e = ( | e = ( | ||||
revlog.offset_type(start, flags), | revlog.offset_type(start, flags), |