Details
Details
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
Path | Packages | |||
---|---|---|---|---|
M | mercurial/exchange.py (4 lines) |
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) |