comparison tests/test-purge-ignored-directory.t @ 49422:55f8f3b6787f stable

test: show how purge removes ignored directories Apparently the rust code path removes ignored directories even though the pure code path doesn't. Show this in tests.
author Arseniy Alekseyev <aalekseyev@janestreet.com>
date Fri, 05 Aug 2022 14:18:13 +0100
parents
children 7e5377bdb66e
comparison
equal deleted inserted replaced
49416:1bad05cfc818 49422:55f8f3b6787f
1 skip ignored directories if -i or --all not specified
2
3 $ hg init t
4 $ cd t
5 $ echo 'ignored' > .hgignore
6 $ hg ci -qA -m init -d'2 0'
7 $ mkdir ignored
8
9 The better behavior here is the non-rust behavior, which is to keep
10 the directory and only delete it when -i or --all is given.
11
12 $ hg purge -v --no-confirm
13 removing directory ignored (known-bad-output rust !)