Mercurial > hg-stable
changeset 49399: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 | 1bad05cfc818 |
children | 7e5377bdb66e |
files | tests/test-purge-ignored-directory.t |
diffstat | 1 files changed, 13 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/test-purge-ignored-directory.t Fri Aug 05 14:18:13 2022 +0100 @@ -0,0 +1,13 @@ +skip ignored directories if -i or --all not specified + + $ hg init t + $ cd t + $ echo 'ignored' > .hgignore + $ hg ci -qA -m init -d'2 0' + $ mkdir ignored + +The better behavior here is the non-rust behavior, which is to keep +the directory and only delete it when -i or --all is given. + + $ hg purge -v --no-confirm + removing directory ignored (known-bad-output rust !)