Mercurial > hg
diff rust/hg-cpython/src/dirstate/status.rs @ 47112:d5956136d19d
dirstate-tree: Give to `status()` mutable access to the `DirstateMap`
Differential Revision: https://phab.mercurial-scm.org/D10546
author | Simon Sapin <simon.sapin@octobus.net> |
---|---|
date | Fri, 16 Apr 2021 12:12:04 +0200 |
parents | 9c6b458a08e1 |
children | 04d1f17f49e7 |
line wrap: on
line diff
--- a/rust/hg-cpython/src/dirstate/status.rs Tue Apr 06 15:49:01 2021 +0200 +++ b/rust/hg-cpython/src/dirstate/status.rs Fri Apr 16 12:12:04 2021 +0200 @@ -112,7 +112,7 @@ let root_dir = get_path_from_bytes(bytes.data(py)); let dmap: DirstateMap = dmap.to_py_object(py); - let dmap = dmap.get_inner(py); + let mut dmap = dmap.get_inner_mut(py); let ignore_files: PyResult<Vec<_>> = ignore_files .iter(py)