tests/test-purge-ignored-directory.t
author Matt Harbison <matt_harbison@yahoo.com>
Thu, 18 Jul 2024 22:46:36 -0400
changeset 51719 7558cee89655
parent 49423 7e5377bdb66e
permissions -rw-r--r--
dirstate: stringify a few exception messages Built in exceptions want str, and ProgrammingError converts bytes to str internally (because it subclasses RuntimeError).

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