tests/test-dirstate-backup.t
author Matt Harbison <matt_harbison@yahoo.com>
Wed, 14 Apr 2021 09:49:36 -0400
branchstable
changeset 47006 e050efe97fbe
parent 45846 8d72e29ad1e0
child 50046 ffd19d73518d
permissions -rw-r--r--
typing: enable pytype processing on mercurial/upgrade_utils/actions.py This was the suggested workaround for the pytype bug that caused this file to be processed forever. Differential Revision: https://phab.mercurial-scm.org/D10460

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