Mercurial > public > mercurial-scm > hg
diff mercurial/cext/parsers.c @ 47268:9d1a8829f959
revlog: signal which revlog index are compatible with Rust
Otherwise, Rust may treat python object like `cindex` object, leading to
trouble. The new attribute is an integer because I expect we might need a flag
field in the future.
As a start we get the rust code to raise a clear TypeError. We will use the
information in a smarter way in the next changesets.
Differential Revision: https://phab.mercurial-scm.org/D10665
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 04 May 2021 14:16:26 +0200 |
parents | 130c9f7ed914 |
children | 80dc1d452993 |
line wrap: on
line diff
--- a/mercurial/cext/parsers.c Tue May 04 11:19:48 2021 +0200 +++ b/mercurial/cext/parsers.c Tue May 04 14:16:26 2021 +0200 @@ -668,7 +668,7 @@ void manifest_module_init(PyObject *mod); void revlog_module_init(PyObject *mod); -static const int version = 19; +static const int version = 20; static void module_init(PyObject *mod) {