--- a/rust/hg-cpython/src/dirstate/dirstate_map.rs Sat Jul 03 20:12:46 2021 +0200
+++ b/rust/hg-cpython/src/dirstate/dirstate_map.rs Sat Jul 03 19:52:00 2021 +0200
@@ -137,18 +137,12 @@
def removefile(
&self,
f: PyObject,
- oldstate: PyObject,
- size: PyObject
+ in_merge: PyObject
) -> PyResult<PyObject> {
self.inner(py).borrow_mut()
.remove_file(
HgPath::new(f.extract::<PyBytes>(py)?.data(py)),
- oldstate.extract::<PyBytes>(py)?.data(py)[0]
- .try_into()
- .map_err(|e: HgError| {
- PyErr::new::<exc::ValueError, _>(py, e.to_string())
- })?,
- size.extract(py)?,
+ in_merge.extract::<PyBool>(py)?.is_true(),
)
.or_else(|_| {
Err(PyErr::new::<exc::OSError, _>(