Show More
@@ -56,10 +56,10 b" impl<'a> FindRoot<'a> {" | |||
|
56 | 56 | }; |
|
57 | 57 | |
|
58 | 58 | if current_dir.join(".hg").exists() { |
|
59 |
return Ok(current_dir |
|
|
59 | return Ok(current_dir); | |
|
60 | 60 | } |
|
61 |
let |
|
|
62 |
|
|
|
61 | let ancestors = current_dir.ancestors(); | |
|
62 | for parent in ancestors { | |
|
63 | 63 | if parent.join(".hg").exists() { |
|
64 | 64 | return Ok(parent.into()); |
|
65 | 65 | } |
General Comments 0
You need to be logged in to leave comments.
Login now