tests/test-dirstate-backup.t
author Raphaël Gomès <rgomes@octobus.net>
Mon, 22 Jul 2024 14:19:12 +0200
changeset 51697 4f4f65c67729
parent 49990 ffd19d73518d
permissions -rw-r--r--
test-install: add new glob for the upgrade notice in newer versions of pip We only globbed for the old warning, newer versions of pip use a cleaner one.

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