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/revlog.py (6 lines) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
87b172d0943e | 2d59c227fc94 | Pierre-Yves David | Nov 2 2019, 7:49 PM |
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 |
# loop through our set of deltas | # loop through our set of deltas | ||||
for data in deltas: | for data in deltas: | ||||
node, p1, p2, linknode, deltabase, delta, flags = data | node, p1, p2, linknode, deltabase, delta, flags = data | ||||
link = linkmapper(linknode) | link = linkmapper(linknode) | ||||
flags = flags or REVIDX_DEFAULT_FLAGS | flags = flags or REVIDX_DEFAULT_FLAGS | ||||
nodes.append(node) | nodes.append(node) | ||||
if node in self.nodemap: | if self.index.has_node(node): | ||||
self._nodeduplicatecallback(transaction, node) | self._nodeduplicatecallback(transaction, node) | ||||
# this can happen if two branches make the same change | # this can happen if two branches make the same change | ||||
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 error.LookupError( | raise error.LookupError( | ||||
deltabase, self.indexfile, _(b'unknown delta base') | deltabase, self.indexfile, _(b'unknown delta base') | ||||
) | ) | ||||
baserev = self.rev(deltabase) | baserev = self.rev(deltabase) | ||||
if baserev != nullrev and self.iscensored(baserev): | if baserev != nullrev and self.iscensored(baserev): | ||||
# if base is censored, delta must be full replacement in a | # if base is censored, delta must be full replacement in a |