# HG changeset patch # User Pierre-Yves David # Date 2019-11-09 12:23:51 # Node ID ded3d545b6f0e6edb411daab2d897e30b5042b38 # Parent b56de57c45ce822394baafdd02cea7cb21b8ec16 index: use `index.get_rev` in `localrepo.known` Differential Revision: https://phab.mercurial-scm.org/D7327 diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -1823,11 +1823,11 @@ class localrepository(object): def known(self, nodes): cl = self.changelog - nm = cl.nodemap + get_rev = cl.index.get_rev filtered = cl.filteredrevs result = [] for n in nodes: - r = nm.get(n) + r = get_rev(n) resp = not (r is None or r in filtered) result.append(resp) return result