D7327: index: use `index.get_rev` in `localrepo.known`
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Sat Nov 9 05:19:26 UTC 2019
marmoute updated this revision to Diff 17840.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D7327?vs=17748&id=17840
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D7327/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D7327
AFFECTED FILES
mercurial/localrepo.py
CHANGE DETAILS
diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -1823,11 +1823,11 @@
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
To: marmoute, #hg-reviewers, indygreg
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list