mirror of
https://github.com/facebook/sapling.git
synced 2024-10-12 01:39:21 +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,7 +50,8 @@ where
|
|||||||
self.file_matches.push(Ok(candidate_path));
|
self.file_matches.push(Ok(candidate_path));
|
||||||
}
|
}
|
||||||
} else if filetype.is_dir() {
|
} else if filetype.is_dir() {
|
||||||
if self
|
if filename.as_str() != ".hg"
|
||||||
|
&& self
|
||||||
.matcher
|
.matcher
|
||||||
.matches_directory(candidate_path.as_repo_path())
|
.matches_directory(candidate_path.as_repo_path())
|
||||||
!= DirectoryMatch::Nothing
|
!= DirectoryMatch::Nothing
|
||||||
|
Loading…
Reference in New Issue
Block a user