##// END OF EJS Templates
rust-status: check for '.hg' regardless of file type (issue6300)...
Raphaël Gomès -
r45250:a467416c stable
parent child Browse files
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,
@@ -672,3 +672,11 b' using log status template, the copy info'
672
672
673
673
674 $ cd ..
674 $ cd ..
675
676 Make sure .hg doesn't show up even as a symlink
677
678 $ hg init repo0
679 $ mkdir symlink-repo0
680 $ cd symlink-repo0
681 $ ln -s ../repo0/.hg
682 $ hg status
General Comments 0
You need to be logged in to leave comments. Login now