mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 17:27:53 +03:00
workingcopy: ignore .hg in walk
Summary: Working copy walker should not traverse into .hg directory. Reviewed By: xavierd Differential Revision: D17403172 fbshipit-source-id: 3efe61db8e09b602bff40b42b0d863248e88aea1
This commit is contained in:
parent
0304c45a44
commit
d1fbf4280a
@ -50,10 +50,11 @@ where
|
||||
self.file_matches.push(Ok(candidate_path));
|
||||
}
|
||||
} else if filetype.is_dir() {
|
||||
if self
|
||||
.matcher
|
||||
.matches_directory(candidate_path.as_repo_path())
|
||||
!= DirectoryMatch::Nothing
|
||||
if filename.as_str() != ".hg"
|
||||
&& self
|
||||
.matcher
|
||||
.matches_directory(candidate_path.as_repo_path())
|
||||
!= DirectoryMatch::Nothing
|
||||
{
|
||||
self.dir_matches.push(candidate_path);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user