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