tests/test-dirstate-backup.t
author Matt Harbison <matt_harbison@yahoo.com>
Tue, 20 Feb 2018 22:03:13 -0500
changeset 36335 d639f60c8eb3
parent 34940 c2b30348930f
child 45827 8d72e29ad1e0
permissions -rw-r--r--
debuginstall: strip double quotes from editorbin on Windows The unconditional posix style shlex.split() prior to 94a1ff16f362 handled this. This isn't mutually exclusive with stripping the quotes in util.findexe()- if the editor can't be found, this command prints out the string, inside single quotes.

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