tests/test-dirstate-backup.t
author David Demelier <markand@malikania.fr>
Mon, 14 May 2018 12:38:05 +0200
changeset 38227 f715faeaceee
parent 34940 c2b30348930f
child 45846 8d72e29ad1e0
permissions -rw-r--r--
config: rename allow_archive to allow-archive As part of ConfigConsolidationPlan [1], rename the option according to the new UI guidelines [2] and add an alias for backward compatibility. [1]: https://www.mercurial-scm.org/wiki/ConfigConsolidationPlan [2]: https://www.mercurial-scm.org/wiki/UIGuideline#adding_new_options

Set up

  $ hg init repo
  $ cd repo

Try to import an empty patch

  $ hg import --no-commit - <<EOF
  > EOF
  applying patch from stdin
  abort: stdin: no diffs found
  [255]

No dirstate backups are left behind

  $ ls .hg/dirstate* | sort
  .hg/dirstate