tests/test-purge-ignored-directory.t
author Arseniy Alekseyev <aalekseyev@janestreet.com>
Fri, 12 Apr 2024 13:48:38 +0100
branchstable
changeset 51565 95c083d21ac6
parent 49421 7e5377bdb66e
permissions -rw-r--r--
tests: add an end-to-end test to show a bug in `visit_children_set` Concretely, `rootfilesin` is completely broken with respect to `visit_children_set` optimization.

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
  $ ls
  ignored
  $ hg purge -v --no-confirm
  $ ls
  ignored