##// END OF EJS Templates
tests: stabilize `test-status-eacces.t` on Windows...
tests: stabilize `test-status-eacces.t` on Windows As noted earlier, `chmod` doesn't complain in MSYS, but also doesn't alter the file permissions such that they are unreadable. I'm guessing the other lines of output in this area that are gated on `rhg` (or not) will also need this, but I don't want to dig too deeply into something that is apparently working well enough.

File last commit:

r52846:fdb1971b default
r52846:fdb1971b default
Show More
test-status-eacces.t
47 lines | 859 B | text/troff | Tads3Lexer
/ tests / test-status-eacces.t
#testcases dirstate-v1 dirstate-v2
#if dirstate-v2
$ cat >> $HGRCPATH << EOF
> [format]
> use-dirstate-v2=1
> [storage]
> dirstate-v2.slow-path=allow
> EOF
#endif
The proliferation of status implementations can be confusing:
- The pure python implementation:
(no-rhg pure !)
- The C implementation:
(no-rhg no-rust no-pure !)
- The two rust implementations:
(rhg !)
(no-rhg rust !)
$ hg init repo1
$ cd repo1
$ mkdir d1
$ touch d1/x
$ hg commit -Am.
adding d1/x
$ touch d1/y
$ chmod -r d1
$ hg status
d1: $EACCES$ (unix-permissions !)
! d1/x (rhg !)
! d1/x (no-rhg rust !)
? d1/y (no-unix-permissions !)
$ hg status
d1: $EACCES$ (unix-permissions !)
! d1/x (rust !)
! d1/x (no-rust rhg !)
? d1/y (no-unix-permissions !)
$ chmod +r d1
$ hg status
? d1/y
$ touch d1/z
$ hg status
? d1/y
? d1/z