tests/test-dirstate-backup.t
author Pierre-Yves David <pierre-yves.david@octobus.net>
Mon, 19 Jul 2021 02:44:11 +0200
changeset 47723 0ed2f74f6e3a
parent 45827 8d72e29ad1e0
child 49990 ffd19d73518d
permissions -rw-r--r--
largefile: replace the `normallookup` call when creating a new lfdirstate This is the newer, more semantic API. Differential Revision: https://phab.mercurial-scm.org/D11165

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