I guess this was overlooked in the initial implementation?
Without this, the next patch would, loose copy information in setparent.
( )
Alphare |
hg-reviewers |
I guess this was overlooked in the initial implementation?
Without this, the next patch would, loose copy information in setparent.
No Linters Available |
No Unit Test Coverage |
Path | Packages | |||
---|---|---|---|---|
M | rust/hg-cpython/src/dirstate/dirstate_map.rs (4 lines) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
9b0204ffb5bf | a03ba705612b | Pierre-Yves David | Oct 1 2021, 6:44 PM |
Status | Author | Revision | |
---|---|---|---|
Closed | SimonSapin | ||
Closed | SimonSapin | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Abandoned | pulkit | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute |
) -> PyResult<Option<PyObject>> { | ) -> PyResult<Option<PyObject>> { | ||||
let key = key.extract::<PyBytes>(py)?; | let key = key.extract::<PyBytes>(py)?; | ||||
match self | match self | ||||
.inner(py) | .inner(py) | ||||
.borrow_mut() | .borrow_mut() | ||||
.copy_map_remove(HgPath::new(key.data(py))) | .copy_map_remove(HgPath::new(key.data(py))) | ||||
.map_err(|e| v2_error(py, e))? | .map_err(|e| v2_error(py, e))? | ||||
{ | { | ||||
Some(_) => Ok(None), | Some(copy) => Ok(Some( | ||||
PyBytes::new(py, copy.as_bytes()).into_object(), | |||||
)), | |||||
None => Ok(default), | None => Ok(default), | ||||
} | } | ||||
} | } | ||||
def copymapiter(&self) -> PyResult<CopyMapKeysIterator> { | def copymapiter(&self) -> PyResult<CopyMapKeysIterator> { | ||||
let leaked_ref = self.inner(py).leak_immutable(); | let leaked_ref = self.inner(py).leak_immutable(); | ||||
CopyMapKeysIterator::from_inner( | CopyMapKeysIterator::from_inner( | ||||
py, | py, |