# HG changeset patch # User Pierre-Yves David # Date 2019-11-09 12:23:53 # Node ID a49b2e253035769f26b1bbdb3ce6157366875e6c # Parent 45d123d840111f590044f81dedb79f6b3489dcfd index: use `index.rev` in `exchange.fallbackheads` Differential Revision: https://phab.mercurial-scm.org/D7345 diff --git a/mercurial/exchange.py b/mercurial/exchange.py --- a/mercurial/exchange.py +++ b/mercurial/exchange.py @@ -528,8 +528,8 @@ class pushoperation(object): # 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(