tests/test-dirstate-backup.t
author Pierre-Yves David <pierre-yves.david@octobus.net>
Mon, 19 Feb 2024 12:09:06 +0100
changeset 51518 bb8612053547
parent 50046 ffd19d73518d
permissions -rw-r--r--
branchcache: fix the copy code We copy some internal attribute along too. This should prevent inconsistency in the resulting branchmap.

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