comparison mercurial/cext/revlog.c @ 43554:b56de57c45ce

index: add a `get_rev` method (API) The new `index.getrev(node)` is to be preferred over using: `index.nodemap.get(node)`. This get us closer to be able to remove the `nodemap` attribute of the index. Differential Revision: https://phab.mercurial-scm.org/D7326
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sat, 09 Nov 2019 13:23:51 +0100
parents bd87114ce341
children ae5e39512ca0
comparison
equal deleted inserted replaced
43553:2da51e292734 43554:b56de57c45ce
2744 METH_VARARGS, 2744 METH_VARARGS,
2745 "return the heads of the common ancestors of the given revs"}, 2745 "return the heads of the common ancestors of the given revs"},
2746 {"clearcaches", (PyCFunction)index_clearcaches, METH_NOARGS, 2746 {"clearcaches", (PyCFunction)index_clearcaches, METH_NOARGS,
2747 "clear the index caches"}, 2747 "clear the index caches"},
2748 {"get", (PyCFunction)index_m_get, METH_VARARGS, "get an index entry"}, 2748 {"get", (PyCFunction)index_m_get, METH_VARARGS, "get an index entry"},
2749 {"get_rev", (PyCFunction)index_m_get, METH_VARARGS,
2750 "return `rev` associated with a node or None"},
2749 {"has_node", (PyCFunction)index_m_has_node, METH_O, 2751 {"has_node", (PyCFunction)index_m_has_node, METH_O,
2750 "return True if the node exist in the index"}, 2752 "return True if the node exist in the index"},
2751 {"rev", (PyCFunction)index_m_rev, METH_O, 2753 {"rev", (PyCFunction)index_m_rev, METH_O,
2752 "return `rev` associated with a node or raise RevlogError"}, 2754 "return `rev` associated with a node or raise RevlogError"},
2753 {"computephasesmapsets", (PyCFunction)compute_phases_map_sets, METH_VARARGS, 2755 {"computephasesmapsets", (PyCFunction)compute_phases_map_sets, METH_VARARGS,