diff --git a/tests/test-dirstate-backup.t b/tests/test-dirstate-backup.t new file mode 100644 index 0000000000000000000000000000000000000000..2c80a864e83eb05fdc9d17e78f1fc83ccffabde8_dGVzdHMvdGVzdC1kaXJzdGF0ZS1iYWNrdXAudA== --- /dev/null +++ b/tests/test-dirstate-backup.t @@ -0,0 +1,19 @@ +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] + +A dirstate backup is left behind + + $ ls .hg/dirstate* | sort + .hg/dirstate + .hg/dirstate.backup.import.* (glob) +