##// 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 use hg::{
26 26 dirstate::StateMapIter, dirstate_tree::on_disk::DirstateV2ParseError,
27 27 dirstate_tree::owning::OwningDirstateMap, revlog::Node,
28 28 utils::files::normalize_case, utils::hg_path::HgPath, DirstateEntry,
29 DirstateError, DirstateParents, EntryState,
29 DirstateError, DirstateParents,
30 30 };
31 31
32 32 // TODO
@@ -269,7 +269,7 py_class!(pub class DirstateMap |py| {
269 269 let dict = PyDict::new(py);
270 270 for item in self.inner(py).borrow_mut().iter() {
271 271 let (path, entry) = item.map_err(|e| v2_error(py, e))?;
272 if entry.state() != EntryState::Removed {
272 if !entry.removed() {
273 273 let key = normalize_case(path);
274 274 let value = path;
275 275 dict.set_item(
General Comments 0
You need to be logged in to leave comments. Login now