Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
47111:623c8e4ddc6d | 47112:d5956136d19d |
---|---|
110 ) -> PyResult<PyTuple> { | 110 ) -> PyResult<PyTuple> { |
111 let bytes = root_dir.extract::<PyBytes>(py)?; | 111 let bytes = root_dir.extract::<PyBytes>(py)?; |
112 let root_dir = get_path_from_bytes(bytes.data(py)); | 112 let root_dir = get_path_from_bytes(bytes.data(py)); |
113 | 113 |
114 let dmap: DirstateMap = dmap.to_py_object(py); | 114 let dmap: DirstateMap = dmap.to_py_object(py); |
115 let dmap = dmap.get_inner(py); | 115 let mut dmap = dmap.get_inner_mut(py); |
116 | 116 |
117 let ignore_files: PyResult<Vec<_>> = ignore_files | 117 let ignore_files: PyResult<Vec<_>> = ignore_files |
118 .iter(py) | 118 .iter(py) |
119 .map(|b| { | 119 .map(|b| { |
120 let file = b.extract::<PyBytes>(py)?; | 120 let file = b.extract::<PyBytes>(py)?; |