comparison tests/test-status-committed-and-ignored.t @ 50299:97a6d6bdbc08 stable

tests: demonstrate a bug with committed&ignored dirs
author Arseniy Alekseyev <aalekseyev@janestreet.com>
date Tue, 14 Mar 2023 14:01:47 +0000
parents
children edcc35a4f1dc
comparison
equal deleted inserted replaced
50298:dd12fc49f9e6 50299:97a6d6bdbc08
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 $ rm -rf r
13
14 $ hg init r
15 $ cd r
16 $ mkdir d1
17 $ mkdir d2
18 $ touch d1/f d2/f
19 $ hg commit -Am '.'
20 adding d1/f
21 adding d2/f
22 $ echo 'syntax:re' >> .hgignore
23 $ echo '^d1$' >> .hgignore
24 $ hg commit -Am "ignore d1"
25 adding .hgignore
26
27 Now d1 is a directory that's both committed and ignored.
28 Untracked files in d2 are still shown, but ones in d1 are ignored:
29
30 $ touch d1/g
31 $ touch d2/g
32 $ RAYON_NUM_THREADS=1 hg status
33 ? d2/g (no-rust no-rhg !)
34
35 ^ BUG: d2/g does not show up with rust status