Mercurial > hg
annotate tests/test-status-eacces.t @ 50293:f1f3a8eb93a1 stable
tests: demonstrate a bug in dirstate-v2 handling of errors
author | Arseniy Alekseyev <aalekseyev@janestreet.com> |
---|---|
date | Fri, 10 Mar 2023 18:20:50 +0000 |
parents | |
children | bae51b50a5cf |
rev | line source |
---|---|
50293
f1f3a8eb93a1
tests: demonstrate a bug in dirstate-v2 handling of errors
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
1 #testcases dirstate-v1 dirstate-v2 |
f1f3a8eb93a1
tests: demonstrate a bug in dirstate-v2 handling of errors
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
2 |
f1f3a8eb93a1
tests: demonstrate a bug in dirstate-v2 handling of errors
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
3 #if dirstate-v2 |
f1f3a8eb93a1
tests: demonstrate a bug in dirstate-v2 handling of errors
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
4 $ cat >> $HGRCPATH << EOF |
f1f3a8eb93a1
tests: demonstrate a bug in dirstate-v2 handling of errors
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
5 > [format] |
f1f3a8eb93a1
tests: demonstrate a bug in dirstate-v2 handling of errors
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
6 > use-dirstate-v2=1 |
f1f3a8eb93a1
tests: demonstrate a bug in dirstate-v2 handling of errors
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
7 > [storage] |
f1f3a8eb93a1
tests: demonstrate a bug in dirstate-v2 handling of errors
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
8 > dirstate-v2.slow-path=allow |
f1f3a8eb93a1
tests: demonstrate a bug in dirstate-v2 handling of errors
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
9 > EOF |
f1f3a8eb93a1
tests: demonstrate a bug in dirstate-v2 handling of errors
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
10 #endif |
f1f3a8eb93a1
tests: demonstrate a bug in dirstate-v2 handling of errors
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
11 |
f1f3a8eb93a1
tests: demonstrate a bug in dirstate-v2 handling of errors
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
12 The proliferation of status implementations can be confusing: |
f1f3a8eb93a1
tests: demonstrate a bug in dirstate-v2 handling of errors
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
13 - The pure python implementation: |
f1f3a8eb93a1
tests: demonstrate a bug in dirstate-v2 handling of errors
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
14 (no-rhg pure !) |
f1f3a8eb93a1
tests: demonstrate a bug in dirstate-v2 handling of errors
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
15 - The C implementation: |
f1f3a8eb93a1
tests: demonstrate a bug in dirstate-v2 handling of errors
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
16 (no-rhg no-rust no-pure !) |
f1f3a8eb93a1
tests: demonstrate a bug in dirstate-v2 handling of errors
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
17 - The two rust implementations: |
f1f3a8eb93a1
tests: demonstrate a bug in dirstate-v2 handling of errors
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
18 (rhg !) |
f1f3a8eb93a1
tests: demonstrate a bug in dirstate-v2 handling of errors
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
19 (no-rhg rust !) |
f1f3a8eb93a1
tests: demonstrate a bug in dirstate-v2 handling of errors
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
20 |
f1f3a8eb93a1
tests: demonstrate a bug in dirstate-v2 handling of errors
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
21 $ hg init repo1 |
f1f3a8eb93a1
tests: demonstrate a bug in dirstate-v2 handling of errors
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
22 $ cd repo1 |
f1f3a8eb93a1
tests: demonstrate a bug in dirstate-v2 handling of errors
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
23 $ mkdir d1 |
f1f3a8eb93a1
tests: demonstrate a bug in dirstate-v2 handling of errors
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
24 $ touch d1/x |
f1f3a8eb93a1
tests: demonstrate a bug in dirstate-v2 handling of errors
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
25 $ hg commit -Am. |
f1f3a8eb93a1
tests: demonstrate a bug in dirstate-v2 handling of errors
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
26 adding d1/x |
f1f3a8eb93a1
tests: demonstrate a bug in dirstate-v2 handling of errors
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
27 $ touch d1/y |
f1f3a8eb93a1
tests: demonstrate a bug in dirstate-v2 handling of errors
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
28 $ chmod -r d1 |
f1f3a8eb93a1
tests: demonstrate a bug in dirstate-v2 handling of errors
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
29 $ hg status |
f1f3a8eb93a1
tests: demonstrate a bug in dirstate-v2 handling of errors
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
30 d1: $EACCES$ |
f1f3a8eb93a1
tests: demonstrate a bug in dirstate-v2 handling of errors
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
31 ! d1/x (rhg !) |
f1f3a8eb93a1
tests: demonstrate a bug in dirstate-v2 handling of errors
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
32 ! d1/x (no-rhg rust !) |
f1f3a8eb93a1
tests: demonstrate a bug in dirstate-v2 handling of errors
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
33 $ hg status |
f1f3a8eb93a1
tests: demonstrate a bug in dirstate-v2 handling of errors
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
34 d1: $EACCES$ (rhg dirstate-v1 !) |
f1f3a8eb93a1
tests: demonstrate a bug in dirstate-v2 handling of errors
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
35 d1: $EACCES$ (no-rhg rust dirstate-v1 !) |
f1f3a8eb93a1
tests: demonstrate a bug in dirstate-v2 handling of errors
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
36 d1: $EACCES$ (no-rust no-rhg !) |
f1f3a8eb93a1
tests: demonstrate a bug in dirstate-v2 handling of errors
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
37 ! d1/x (rust dirstate-v1 !) |
f1f3a8eb93a1
tests: demonstrate a bug in dirstate-v2 handling of errors
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
38 ! d1/x (no-rust rhg dirstate-v1 !) |
f1f3a8eb93a1
tests: demonstrate a bug in dirstate-v2 handling of errors
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
39 $ chmod +r d1 |
f1f3a8eb93a1
tests: demonstrate a bug in dirstate-v2 handling of errors
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
40 $ hg status |
f1f3a8eb93a1
tests: demonstrate a bug in dirstate-v2 handling of errors
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
41 ? d1/y (rhg dirstate-v1 !) |
f1f3a8eb93a1
tests: demonstrate a bug in dirstate-v2 handling of errors
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
42 ? d1/y (no-rhg rust dirstate-v1 !) |
f1f3a8eb93a1
tests: demonstrate a bug in dirstate-v2 handling of errors
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
43 ? d1/y (no-rhg no-rust !) |
f1f3a8eb93a1
tests: demonstrate a bug in dirstate-v2 handling of errors
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
44 |
f1f3a8eb93a1
tests: demonstrate a bug in dirstate-v2 handling of errors
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
45 TODO: make the tests marked with (dirstate-v1) above work the same way |
f1f3a8eb93a1
tests: demonstrate a bug in dirstate-v2 handling of errors
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
46 with dirstate-v2 as well. |
f1f3a8eb93a1
tests: demonstrate a bug in dirstate-v2 handling of errors
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
47 |
f1f3a8eb93a1
tests: demonstrate a bug in dirstate-v2 handling of errors
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
48 $ touch d1/z |
f1f3a8eb93a1
tests: demonstrate a bug in dirstate-v2 handling of errors
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
49 $ hg status |
f1f3a8eb93a1
tests: demonstrate a bug in dirstate-v2 handling of errors
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
50 ? d1/y |
f1f3a8eb93a1
tests: demonstrate a bug in dirstate-v2 handling of errors
Arseniy Alekseyev <aalekseyev@janestreet.com>
parents:
diff
changeset
|
51 ? d1/z |