Show More
@@ -141,7 +141,10 b" impl<'tree, 'a> StatusCommon<'tree, 'a, " | |||||
141 | ) { |
|
141 | ) { | |
142 | entries |
|
142 | entries | |
143 | } else { |
|
143 | } else { | |
144 | return Ok(()); |
|
144 | // Treat an unreadable directory (typically because of insufficient | |
|
145 | // permissions) like an empty directory. `self.read_dir` has | |||
|
146 | // already called `self.io_error` so a warning will be emitted. | |||
|
147 | Vec::new() | |||
145 | }; |
|
148 | }; | |
146 |
|
149 | |||
147 | // `merge_join_by` requires both its input iterators to be sorted: |
|
150 | // `merge_join_by` requires both its input iterators to be sorted: |
@@ -837,6 +837,23 b' Note: `hg status some-name` creates a pa' | |||||
837 | yet by the Rust implementation of status, but includematcher is supported. |
|
837 | yet by the Rust implementation of status, but includematcher is supported. | |
838 | --include is used below for that reason |
|
838 | --include is used below for that reason | |
839 |
|
839 | |||
|
840 | #if unix-permissions | |||
|
841 | ||||
|
842 | Not having permission to read a directory that contains tracked files makes | |||
|
843 | status emit a warning then behave as if the directory was empty or removed | |||
|
844 | entirely: | |||
|
845 | ||||
|
846 | $ chmod 0 subdir | |||
|
847 | $ hg status --include subdir | |||
|
848 | subdir: Permission denied | |||
|
849 | R subdir/removed | |||
|
850 | ! subdir/clean | |||
|
851 | ! subdir/deleted | |||
|
852 | ! subdir/modified | |||
|
853 | $ chmod 755 subdir | |||
|
854 | ||||
|
855 | #endif | |||
|
856 | ||||
840 | Remove a directory that contains tracked files |
|
857 | Remove a directory that contains tracked files | |
841 |
|
858 | |||
842 | $ rm -r subdir |
|
859 | $ rm -r subdir |
General Comments 0
You need to be logged in to leave comments.
Login now