# HG changeset patch # User Mark Thomas # Date 1508504013 25200 # Node ID 2c80a864e83eb05fdc9d17e78f1fc83ccffabde8 # Parent aa05b95949fe53cbbe01f7dd933e90c3d17b8dec tests: add a test demonstrating failure to clean up dirstate backups Differential Revision: https://phab.mercurial-scm.org/D1200 diff -r aa05b95949fe -r 2c80a864e83e tests/test-dirstate-backup.t --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/test-dirstate-backup.t Fri Oct 20 05:53:33 2017 -0700 @@ -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) +