tests/test-dirstate-backup.t
author Pierre-Yves David <pierre-yves.david@octobus.net>
Mon, 20 Feb 2023 16:31:36 +0100
changeset 50122 72b4d9284411
parent 49990 ffd19d73518d
permissions -rw-r--r--
dirstate: track that changes are pending in a transaction Nothing is currently broken because if this, but this make the `_invalidated_context` attribute more accurate. Being more accurate here will help us later, when dealing with `status` call.

Set up

  $ hg init repo
  $ cd repo
  $ echo a > a
  $ hg add a
  $ hg commit -m a

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