Show More
@@ -323,6 +323,11 b" fn handle_traversed_entry<'a>(" | |||
|
323 | 323 | let file_type = dir_entry.file_type()?; |
|
324 | 324 | let entry_option = dmap.get(&filename); |
|
325 | 325 | |
|
326 | if filename.as_bytes() == b".hg" { | |
|
327 | // Could be a directory or a symlink | |
|
328 | return Ok(()); | |
|
329 | } | |
|
330 | ||
|
326 | 331 | if file_type.is_dir() { |
|
327 | 332 | handle_traversed_dir( |
|
328 | 333 | scope, |
@@ -446,9 +451,7 b" fn traverse_dir<'a>(" | |||
|
446 | 451 | options: StatusOptions, |
|
447 | 452 | ) -> IoResult<()> { |
|
448 | 453 | let directory = directory.as_ref(); |
|
449 | if directory.as_bytes() == b".hg" { | |
|
450 | return Ok(()); | |
|
451 | } | |
|
454 | ||
|
452 | 455 | let visit_entries = match matcher.visit_children_set(directory) { |
|
453 | 456 | VisitChildrenSet::Empty => return Ok(()), |
|
454 | 457 | VisitChildrenSet::This | VisitChildrenSet::Recursive => None, |
General Comments 0
You need to be logged in to leave comments.
Login now