Skip to content
Snippets Groups Projects
Commit e698e3e7 authored by Raphaël Gomès's avatar Raphaël Gomès
Browse files

rust-cpython: add a TODO about repo reuse

This will need to be done soon-ish to prevent any surprises.
parent e4b242f9
2 merge requests!1083Merge stable into default,!1051Rust update from null fixes
......@@ -64,6 +64,8 @@
/// Get a repository from a given [`PyObject`] path, and bubble up any error
/// that comes up.
pub fn repo_from_path(py: Python, repo_path: PyObject) -> Result<Repo, PyErr> {
// TODO make the Config a Python class and downcast it here, otherwise we
// lose CLI args and runtime overrides done in Python.
let config =
hgerror_to_pyerr(py, Config::load_non_repo().map_err(HgError::from))?;
let py_bytes = &repo_path.extract::<PyBytes>(py)?;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment