# HG changeset patch # User Arseniy Alekseyev # Date 1678802507 0 # Node ID 97a6d6bdbc08df0d7b2f8c8528a21d5ba3daff9b # Parent dd12fc49f9e6ed0baecada872813cfeacb4fdfc4 tests: demonstrate a bug with committed&ignored dirs diff -r dd12fc49f9e6 -r 97a6d6bdbc08 tests/test-status-committed-and-ignored.t --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/test-status-committed-and-ignored.t Tue Mar 14 14:01:47 2023 +0000 @@ -0,0 +1,35 @@ +#testcases dirstate-v1 dirstate-v2 + +#if dirstate-v2 + $ cat >> $HGRCPATH << EOF + > [format] + > use-dirstate-v2=1 + > [storage] + > dirstate-v2.slow-path=allow + > EOF +#endif + + $ rm -rf r + + $ hg init r + $ cd r + $ mkdir d1 + $ mkdir d2 + $ touch d1/f d2/f + $ hg commit -Am '.' + adding d1/f + adding d2/f + $ echo 'syntax:re' >> .hgignore + $ echo '^d1$' >> .hgignore + $ hg commit -Am "ignore d1" + adding .hgignore + +Now d1 is a directory that's both committed and ignored. +Untracked files in d2 are still shown, but ones in d1 are ignored: + + $ touch d1/g + $ touch d2/g + $ RAYON_NUM_THREADS=1 hg status + ? d2/g (no-rust no-rhg !) + +^ BUG: d2/g does not show up with rust status