tests/test-dirstate-backup.t
author Pierre-Yves David <pierre-yves.david@octobus.net>
Thu, 17 Feb 2022 06:32:03 +0100
changeset 48790 5ba24e886cec
parent 45827 8d72e29ad1e0
child 49990 ffd19d73518d
permissions -rw-r--r--
tracked-key: make it possible to upgrade to and downgrade from the feature This seems rather important if we want people to start using it. Differential Revision: https://phab.mercurial-scm.org/D12198

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
  [10]

No dirstate backups are left behind

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