Mercurial > public > mercurial-scm > hg
diff mercurial/policy.py @ 43534:0c659fc20207
index: add a `has_node` method (API)
The new `index.has_node(node)` is to be preferred over:
`node in index.nodemap`.
This get us closer to be able to remove the `nodemap` attribute of the index.
Differential Revision: https://phab.mercurial-scm.org/D7322
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sun, 03 Nov 2019 00:01:09 +0100 |
parents | 9f70512ae2cf |
children | bd87114ce341 |
line wrap: on
line diff
--- a/mercurial/policy.py Sat Nov 09 05:54:22 2019 +0100 +++ b/mercurial/policy.py Sun Nov 03 00:01:09 2019 +0100 @@ -80,7 +80,7 @@ ('cext', 'bdiff'): 3, ('cext', 'mpatch'): 1, ('cext', 'osutil'): 4, - ('cext', 'parsers'): 13, + ('cext', 'parsers'): 14, } # map import request to other package or module