D7323: index: use `index.has_node` in `revlog.addrevision`
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Sat Nov 9 00:17:42 EST 2019
marmoute updated this revision to Diff 17836.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D7323?vs=17744&id=17836
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D7323/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D7323
AFFECTED FILES
mercurial/revlog.py
CHANGE DETAILS
diff --git a/mercurial/revlog.py b/mercurial/revlog.py
--- a/mercurial/revlog.py
+++ b/mercurial/revlog.py
@@ -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:
To: marmoute, indygreg, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list