index: use `index.has_node` in `revlog.addrevision`
Differential Revision: https://phab.mercurial-scm.org/D7323
--- a/mercurial/revlog.py Sun Nov 03 00:01:09 2019 +0100
+++ b/mercurial/revlog.py Sun Nov 03 00:05:20 2019 +0100
@@ -1995,7 +1995,7 @@
)
node = node or self.hash(rawtext, p1, p2)
- if node in self.nodemap:
+ if self.index.has_node(node):
return node
if validatehash: