tests/test-purge-ignored-directory.t
author Raphaël Gomès <rgomes@octobus.net>
Wed, 17 Aug 2022 12:00:06 +0200
branchstable
changeset 49421 7e5377bdb66e
parent 49420 55f8f3b6787f
permissions -rw-r--r--
rust-status: ignored directories are now correctly only listed if opted into This fixes the behavior of `hg purge` removing empty ignored directory even without `--all` or `--ignored`.

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