Mercurial > public > mercurial-scm > hg
diff rust/hg-pyo3/src/revlog/mod.rs @ 52778:523ca3d225f5
rust-pyo3-revlog: config extraction functions
We put this aside in a separate submodule to avoid cluttering
the main `revlog` module.
We use two helpers to extract items from the passed Python
configuration: an extension trait for `PyDict` and a macro.
As the macro uses `intern!`, it might make a small
differences if lots of revlogs have to be opened.
Also, using `conf` in namings instead of `py_config` in most cases, as the
fact that this is Python configuration is obvious from the context
(name of the module) and the types. This allows to let many item extractions
fit into a single line.
author | Georges Racinet <georges.racinet@cloudcrane.io> |
---|---|
date | Tue, 24 Dec 2024 18:56:32 +0100 |
parents | 264047bf4b9b |
children | 42b219a1404a |
line wrap: on
line diff