diff --git a/tests/test-dirstate-backup.t b/tests/test-dirstate-backup.t new file mode 100644 --- /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 + 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) +