Show More
@@ -431,7 +431,7 b' impl DirstateMap {' | |||||
431 | let mut new_file_fold_map = FileFoldMap::default(); |
|
431 | let mut new_file_fold_map = FileFoldMap::default(); | |
432 |
|
432 | |||
433 | for (filename, DirstateEntry { state, .. }) in self.state_map.iter() { |
|
433 | for (filename, DirstateEntry { state, .. }) in self.state_map.iter() { | |
434 |
if *state |
|
434 | if *state != EntryState::Removed { | |
435 | new_file_fold_map |
|
435 | new_file_fold_map | |
436 | .insert(normalize_case(&filename), filename.to_owned()); |
|
436 | .insert(normalize_case(&filename), filename.to_owned()); | |
437 | } |
|
437 | } | |
@@ -447,7 +447,7 b' impl DirstateMap {' | |||||
447 | let mut new_file_fold_map = FileFoldMap::default(); |
|
447 | let mut new_file_fold_map = FileFoldMap::default(); | |
448 |
|
448 | |||
449 | for (filename, DirstateEntry { state, .. }) in self.state_map.iter() { |
|
449 | for (filename, DirstateEntry { state, .. }) in self.state_map.iter() { | |
450 |
if state |
|
450 | if state != EntryState::Removed { | |
451 | new_file_fold_map |
|
451 | new_file_fold_map | |
452 | .insert(normalize_case(&filename), filename.to_owned()); |
|
452 | .insert(normalize_case(&filename), filename.to_owned()); | |
453 | } |
|
453 | } |
@@ -350,8 +350,8 b' py_class!(pub class DirstateMap |py| {' | |||||
350 | { |
|
350 | { | |
351 | dict.set_item( |
|
351 | dict.set_item( | |
352 | py, |
|
352 | py, | |
353 |
key.as_bytes(). |
|
353 | PyBytes::new(py, key.as_bytes()).into_object(), | |
354 |
value.as_bytes(). |
|
354 | PyBytes::new(py, value.as_bytes()).into_object(), | |
355 | )?; |
|
355 | )?; | |
356 | } |
|
356 | } | |
357 | Ok(dict) |
|
357 | Ok(dict) |
General Comments 0
You need to be logged in to leave comments.
Login now