Mercurial > hg
diff rust/hg-cpython/src/dirstate/dirstate_map.rs @ 49112:a55934393078
rust-distatemap: remove `addfile` API
All of its users have been migrated to the new API
Differential Revision: https://phab.mercurial-scm.org/D12510
author | Raphaël Gomès <rgomes@octobus.net> |
---|---|
date | Wed, 23 Mar 2022 17:19:32 +0100 |
parents | 8a17fc501eda |
children | 3df46f3a3d6c |
line wrap: on
line diff
--- a/rust/hg-cpython/src/dirstate/dirstate_map.rs Wed Mar 23 17:16:10 2022 +0100 +++ b/rust/hg-cpython/src/dirstate/dirstate_map.rs Wed Mar 23 17:19:32 2022 +0100 @@ -118,20 +118,6 @@ Ok(py.None()) } - def addfile( - &self, - f: PyBytes, - item: DirstateItem, - ) -> PyResult<PyNone> { - let filename = HgPath::new(f.data(py)); - let entry = item.get_entry(py); - self.inner(py) - .borrow_mut() - .add_file(filename, entry) - .map_err(|e |dirstate_error(py, e))?; - Ok(PyNone) - } - def set_tracked(&self, f: PyObject) -> PyResult<PyBool> { let bytes = f.extract::<PyBytes>(py)?; let path = HgPath::new(bytes.data(py));