tests/test-purge-ignored-directory.t
author Pierre-Yves David <pierre-yves.david@octobus.net>
Tue, 04 Oct 2022 14:33:31 +0200
branchstable
changeset 49425 f0a3aaa07d6a
parent 49400 7e5377bdb66e
permissions -rw-r--r--
shelve: do not add the dirstate backup to the transaction Otherwise the transaction will properly clean up its mess on abort… deleting the backup in the process. This break with dirstate-v2 that has more file than just the dirstate. The dirstate itself is full of various exception and is "fine" when using dirstate-v1.

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