tests/test-dirstate-backup.t
author Pulkit Goyal <pulkit@yandex-team.ru>
Wed, 29 Aug 2018 20:38:38 +0300
changeset 39389 438f3932a432
parent 34940 c2b30348930f
child 45846 8d72e29ad1e0
permissions -rw-r--r--
contrib: byteify perf.py file This is done using contrib/byteify-strings.py. There is just one extra change done to make sure lines don't get longer than 80 chars. # skip-blame because just b'' prefixes. Differential Revision: https://phab.mercurial-scm.org/D4422

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