Mercurial > hg
diff mercurial/cext/parsers.c @ 48044:d5528ac9b4f2
dirstate: Use the Rust implementation of DirstateItem when Rust is enabled
… instead of the C implementation, with C/Rust conversions at the FFI boundary
Differential Revision: https://phab.mercurial-scm.org/D11486
author | Simon Sapin <simon.sapin@octobus.net> |
---|---|
date | Wed, 22 Sep 2021 11:33:29 +0200 |
parents | 448aff4e8dd4 |
children | a660d8a53267 |
line wrap: on
line diff
--- a/mercurial/cext/parsers.c Wed Sep 22 11:28:52 2021 +0200 +++ b/mercurial/cext/parsers.c Wed Sep 22 11:33:29 2021 +0200 @@ -1233,7 +1233,6 @@ static void module_init(PyObject *mod) { - PyObject *capsule = NULL; PyModule_AddIntConstant(mod, "version", version); /* This module constant has two purposes. First, it lets us unit test @@ -1250,12 +1249,6 @@ manifest_module_init(mod); revlog_module_init(mod); - capsule = PyCapsule_New( - dirstate_item_from_v1_data, - "mercurial.cext.parsers.make_dirstate_item_CAPI", NULL); - if (capsule != NULL) - PyModule_AddObject(mod, "make_dirstate_item_CAPI", capsule); - if (PyType_Ready(&dirstateItemType) < 0) { return; }