##// END OF EJS Templates
rust-hg-cpython: remove use of `EntryState`...
Raphaël Gomès -
r50026:a1fce500 default
parent child Browse files
Show More
@@ -26,7 +26,7 b' use hg::{'
26 dirstate::StateMapIter, dirstate_tree::on_disk::DirstateV2ParseError,
26 dirstate::StateMapIter, dirstate_tree::on_disk::DirstateV2ParseError,
27 dirstate_tree::owning::OwningDirstateMap, revlog::Node,
27 dirstate_tree::owning::OwningDirstateMap, revlog::Node,
28 utils::files::normalize_case, utils::hg_path::HgPath, DirstateEntry,
28 utils::files::normalize_case, utils::hg_path::HgPath, DirstateEntry,
29 DirstateError, DirstateParents, EntryState,
29 DirstateError, DirstateParents,
30 };
30 };
31
31
32 // TODO
32 // TODO
@@ -269,7 +269,7 b' py_class!(pub class DirstateMap |py| {'
269 let dict = PyDict::new(py);
269 let dict = PyDict::new(py);
270 for item in self.inner(py).borrow_mut().iter() {
270 for item in self.inner(py).borrow_mut().iter() {
271 let (path, entry) = item.map_err(|e| v2_error(py, e))?;
271 let (path, entry) = item.map_err(|e| v2_error(py, e))?;
272 if entry.state() != EntryState::Removed {
272 if !entry.removed() {
273 let key = normalize_case(path);
273 let key = normalize_case(path);
274 let value = path;
274 let value = path;
275 dict.set_item(
275 dict.set_item(
General Comments 0
You need to be logged in to leave comments. Login now