Mercurial > hg
comparison rust/hg-cpython/src/dirstate/dirstate_map.rs @ 49122:861dd252e2dc
rust-cpython: remove unused API to `drop_entry_and_copy_source`
This is not used anywhere anymore and its use cases are covered by the new API
Differential Revision: https://phab.mercurial-scm.org/D12520
author | Raphaël Gomès <rgomes@octobus.net> |
---|---|
date | Tue, 29 Mar 2022 00:58:58 +0200 |
parents | 10edc54d18f1 |
children | d9a66d62c604 |
comparison
equal
deleted
inserted
replaced
49121:10edc54d18f1 | 49122:861dd252e2dc |
---|---|
203 Err(PyErr::new::<exc::OSError, _>(py, "Dirstate error".to_string())) | 203 Err(PyErr::new::<exc::OSError, _>(py, "Dirstate error".to_string())) |
204 })?; | 204 })?; |
205 Ok(PyNone) | 205 Ok(PyNone) |
206 } | 206 } |
207 | 207 |
208 def drop_item_and_copy_source( | |
209 &self, | |
210 f: PyBytes, | |
211 ) -> PyResult<PyNone> { | |
212 self.inner(py) | |
213 .borrow_mut() | |
214 .drop_entry_and_copy_source(HgPath::new(f.data(py))) | |
215 .map_err(|e |dirstate_error(py, e))?; | |
216 Ok(PyNone) | |
217 } | |
218 | |
219 def hastrackeddir(&self, d: PyObject) -> PyResult<PyBool> { | 208 def hastrackeddir(&self, d: PyObject) -> PyResult<PyBool> { |
220 let d = d.extract::<PyBytes>(py)?; | 209 let d = d.extract::<PyBytes>(py)?; |
221 Ok(self.inner(py).borrow_mut() | 210 Ok(self.inner(py).borrow_mut() |
222 .has_tracked_dir(HgPath::new(d.data(py))) | 211 .has_tracked_dir(HgPath::new(d.data(py))) |
223 .map_err(|e| { | 212 .map_err(|e| { |