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/exchangev2.py (4 lines) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
6a321f1b5798 | fef42fc0f5fc | Pierre-Yves David | Nov 8 2019, 7:25 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 |
common = set(common) | common = set(common) | ||||
remoteheads = set(remoteheads) | remoteheads = set(remoteheads) | ||||
# If a remote head is filtered locally, put it back in the common set. | # If a remote head is filtered locally, put it back in the common set. | ||||
# See the comment in exchange._pulldiscoverychangegroup() for more. | # See the comment in exchange._pulldiscoverychangegroup() for more. | ||||
if fetch and remoteheads: | if fetch and remoteheads: | ||||
nodemap = repo.unfiltered().changelog.nodemap | has_node = repo.unfiltered().changelog.index.has_node | ||||
common |= {head for head in remoteheads if head in nodemap} | common |= {head for head in remoteheads if has_node(head)} | ||||
if set(remoteheads).issubset(common): | if set(remoteheads).issubset(common): | ||||
fetch = [] | fetch = [] | ||||
common.discard(nullid) | common.discard(nullid) | ||||
return common, fetch, remoteheads | return common, fetch, remoteheads | ||||