tests/test-dirstate-backup.t
author Denis Laxalde <denis@laxalde.org>
Mon, 21 Oct 2019 11:26:41 +0200
branchstable
changeset 43309 b4b1131187c4
parent 34940 c2b30348930f
child 45846 8d72e29ad1e0
permissions -rw-r--r--
py3: decode bytes before logging in run-tests.py Avoids messages like "Found prerequisite b'diff' at b'/usr/bin/diff'" under Python 3.

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
  [255]

No dirstate backups are left behind

  $ ls .hg/dirstate* | sort
  .hg/dirstate