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.
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
Path | Packages | |||
---|---|---|---|---|
M | rust/hg-cpython/src/dirstate/dirstate_map.rs (4 lines) |
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, |