Show More
@@ -0,0 +1,51 b'' | |||||
|
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 | The proliferation of status implementations can be confusing: | |||
|
13 | - The pure python implementation: | |||
|
14 | (no-rhg pure !) | |||
|
15 | - The C implementation: | |||
|
16 | (no-rhg no-rust no-pure !) | |||
|
17 | - The two rust implementations: | |||
|
18 | (rhg !) | |||
|
19 | (no-rhg rust !) | |||
|
20 | ||||
|
21 | $ hg init repo1 | |||
|
22 | $ cd repo1 | |||
|
23 | $ mkdir d1 | |||
|
24 | $ touch d1/x | |||
|
25 | $ hg commit -Am. | |||
|
26 | adding d1/x | |||
|
27 | $ touch d1/y | |||
|
28 | $ chmod -r d1 | |||
|
29 | $ hg status | |||
|
30 | d1: $EACCES$ | |||
|
31 | ! d1/x (rhg !) | |||
|
32 | ! d1/x (no-rhg rust !) | |||
|
33 | $ hg status | |||
|
34 | d1: $EACCES$ (rhg dirstate-v1 !) | |||
|
35 | d1: $EACCES$ (no-rhg rust dirstate-v1 !) | |||
|
36 | d1: $EACCES$ (no-rust no-rhg !) | |||
|
37 | ! d1/x (rust dirstate-v1 !) | |||
|
38 | ! d1/x (no-rust rhg dirstate-v1 !) | |||
|
39 | $ chmod +r d1 | |||
|
40 | $ hg status | |||
|
41 | ? d1/y (rhg dirstate-v1 !) | |||
|
42 | ? d1/y (no-rhg rust dirstate-v1 !) | |||
|
43 | ? d1/y (no-rhg no-rust !) | |||
|
44 | ||||
|
45 | TODO: make the tests marked with (dirstate-v1) above work the same way | |||
|
46 | with dirstate-v2 as well. | |||
|
47 | ||||
|
48 | $ touch d1/z | |||
|
49 | $ hg status | |||
|
50 | ? d1/y | |||
|
51 | ? d1/z |
General Comments 0
You need to be logged in to leave comments.
Login now