This is not used anywhere anymore and its use cases are covered by the new API
Details
Details
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Branch
- default
- Lint
No Linters Available - Unit
No Unit Test Coverage
This is not used anywhere anymore and its use cases are covered by the new API
No Linters Available |
No Unit Test Coverage |
Path | Packages | |||
---|---|---|---|---|
M | rust/hg-cpython/src/dirstate/dirstate_map.rs (11 lines) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
a7dedb7cbe90 | 6c5b27a3a7be | Raphaël Gomès | Mar 28 2022, 6:58 PM |
Status | Author | Revision | |
---|---|---|---|
Closed | Alphare | ||
Closed | Alphare | ||
Closed | Alphare | ||
Closed | Alphare | ||
Closed | Alphare | ||
Closed | Alphare | ||
Closed | Alphare | ||
Closed | Alphare | ||
Closed | Alphare | ||
Closed | Alphare | ||
Closed | Alphare | ||
Closed | Alphare | ||
Closed | Alphare | ||
Closed | Alphare | ||
Closed | Alphare | ||
Closed | Alphare | ||
Closed | Alphare | ||
Closed | Alphare | ||
Closed | Alphare | ||
Closed | Alphare | ||
Closed | Alphare | ||
Closed | Alphare | ||
Closed | Alphare | ||
Closed | Alphare | ||
Closed | Alphare | ||
Closed | Alphare | ||
Closed | Alphare | ||
Closed | Alphare | ||
Closed | Alphare | ||
Closed | Alphare | ||
Closed | Alphare | ||
Closed | Alphare | ||
Closed | Alphare | ||
Closed | Alphare | ||
Closed | Alphare | ||
Closed | Alphare |
parent_file_data, | parent_file_data, | ||||
); | ); | ||||
res.or_else(|_| { | res.or_else(|_| { | ||||
Err(PyErr::new::<exc::OSError, _>(py, "Dirstate error".to_string())) | Err(PyErr::new::<exc::OSError, _>(py, "Dirstate error".to_string())) | ||||
})?; | })?; | ||||
Ok(PyNone) | Ok(PyNone) | ||||
} | } | ||||
def drop_item_and_copy_source( | |||||
&self, | |||||
f: PyBytes, | |||||
) -> PyResult<PyNone> { | |||||
self.inner(py) | |||||
.borrow_mut() | |||||
.drop_entry_and_copy_source(HgPath::new(f.data(py))) | |||||
.map_err(|e |dirstate_error(py, e))?; | |||||
Ok(PyNone) | |||||
} | |||||
def hastrackeddir(&self, d: PyObject) -> PyResult<PyBool> { | def hastrackeddir(&self, d: PyObject) -> PyResult<PyBool> { | ||||
let d = d.extract::<PyBytes>(py)?; | let d = d.extract::<PyBytes>(py)?; | ||||
Ok(self.inner(py).borrow_mut() | Ok(self.inner(py).borrow_mut() | ||||
.has_tracked_dir(HgPath::new(d.data(py))) | .has_tracked_dir(HgPath::new(d.data(py))) | ||||
.map_err(|e| { | .map_err(|e| { | ||||
PyErr::new::<exc::ValueError, _>(py, e.to_string()) | PyErr::new::<exc::ValueError, _>(py, e.to_string()) | ||||
})? | })? | ||||
.to_py_object(py)) | .to_py_object(py)) |