D7345: index: use `index.rev` in `exchange.fallbackheads`
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Sat Nov 9 08:15:05 EST 2019
marmoute updated this revision to Diff 17887.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D7345?vs=17847&id=17887
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D7345/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D7345
AFFECTED FILES
mercurial/exchange.py
CHANGE DETAILS
diff --git a/mercurial/exchange.py b/mercurial/exchange.py
--- a/mercurial/exchange.py
+++ b/mercurial/exchange.py
@@ -528,8 +528,8 @@
# We can pick:
# * missingheads part of common (::commonheads)
common = self.outgoing.common
- nm = self.repo.changelog.nodemap
- cheads = [node for node in self.revs if nm[node] in common]
+ rev = self.repo.changelog.index.rev
+ cheads = [node for node in self.revs if rev(node) in common]
# and
# * commonheads parents on missing
revset = unfi.set(
To: marmoute, #hg-reviewers, indygreg
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list