Debian Codegraph @

tests/test-status-eacces.t

raw
1 #testcases dirstate-v1 dirstate-v2
2
3 #if dirstate-v2
4 $ cat >> $HGRCPATH << EOF
5 > [format]
6 > use-dirstate-v2=1
7 > [storage]
8 > dirstate-v2.slow-path=allow
9 > EOF
10 #endif
11
12
13 The proliferation of status implementations can be confusing:
14 - The pure python implementation:
15 (no-rhg pure !)
16 - The C implementation:
17 (no-rhg no-rust no-pure !)
18 - The two rust implementations:
19 (rhg !)
20 (no-rhg rust !)
21
22 $ hg init repo1
23 $ cd repo1
24 $ mkdir d1
25 $ touch d1/x
26 $ hg commit -Am.
27 adding d1/x
28 $ touch d1/y
29 $ chmod -r d1
30 $ hg status
31 d1: $EACCES$ (unix-permissions !)
32 ! d1/x (rhg !)
33 ! d1/x (no-rhg rust !)
34 ? d1/y (no-unix-permissions !)
35 $ hg status
36 d1: $EACCES$ (unix-permissions !)
37 ! d1/x (rust !)
38 ! d1/x (no-rust rhg !)
39 ? d1/y (no-unix-permissions !)
40 $ chmod +r d1
41 $ hg status
42 ? d1/y
43
44 $ touch d1/z
45 $ hg status
46 ? d1/y
47 ? d1/z