comparison tests/test-dirstate-backup.t @ 34939:2c80a864e83e stable

tests: add a test demonstrating failure to clean up dirstate backups Differential Revision: https://phab.mercurial-scm.org/D1200
author Mark Thomas <mbthomas@fb.com>
date Fri, 20 Oct 2017 05:53:33 -0700
parents
children c2b30348930f
comparison
equal deleted inserted replaced
34938:aa05b95949fe 34939:2c80a864e83e
1 Set up
2
3 $ hg init repo
4 $ cd repo
5
6 Try to import an empty patch
7
8 $ hg import --no-commit - <<EOF
9 > EOF
10 applying patch from stdin
11 abort: stdin: no diffs found
12 [255]
13
14 A dirstate backup is left behind
15
16 $ ls .hg/dirstate* | sort
17 .hg/dirstate
18 .hg/dirstate.backup.import.* (glob)
19