tests/test-dirstate-backup.t
author Jun Wu <quark@fb.com>
Mon, 18 Dec 2017 14:37:00 -0800
changeset 35452 488634db5928
parent 34940 c2b30348930f
child 45827 8d72e29ad1e0
permissions -rw-r--r--
lfs: fix committing deleted files caused by e0a1b9ee93cd e0a1b9ee93cd (lfs: add a repo requirement for this extension once an lfs file is committed) introduced a regression that prevents committing file deletion. This patch fixes that. Differential Revision: https://phab.mercurial-scm.org/D1717

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