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/exchange.py (4 lines) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
8cfc0445c601 | ff0afcd839dc | Pierre-Yves David | Nov 8 2019, 9:58 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 |
# | # | ||||
# while trying to push we already computed the following: | # while trying to push we already computed the following: | ||||
# common = (::commonheads) | # common = (::commonheads) | ||||
# missing = ((commonheads::missingheads) - commonheads) | # missing = ((commonheads::missingheads) - commonheads) | ||||
# | # | ||||
# We can pick: | # We can pick: | ||||
# * missingheads part of common (::commonheads) | # * missingheads part of common (::commonheads) | ||||
common = self.outgoing.common | common = self.outgoing.common | ||||
nm = self.repo.changelog.nodemap | rev = self.repo.changelog.index.rev | ||||
cheads = [node for node in self.revs if nm[node] in common] | cheads = [node for node in self.revs if rev(node) in common] | ||||
# and | # and | ||||
# * commonheads parents on missing | # * commonheads parents on missing | ||||
revset = unfi.set( | revset = unfi.set( | ||||
b'%ln and parents(roots(%ln))', | b'%ln and parents(roots(%ln))', | ||||
self.outgoing.commonheads, | self.outgoing.commonheads, | ||||
self.outgoing.missing, | self.outgoing.missing, | ||||
) | ) | ||||
cheads.extend(c.node() for c in revset) | cheads.extend(c.node() for c in revset) |