# HG changeset patch # User Vadim Gelfer # Date 1155937752 25200 # Node ID a7a9ba7a9f48474ad2a8a8492d59a9286ba6f155 # Parent 731f6b3d27c290e1207b77cd85f71b675e719e37 add test for issue 322. no .out file because issue is still live. diff --git a/tests/test-issue322 b/tests/test-issue322 new file mode 100755 --- /dev/null +++ b/tests/test-issue322 @@ -0,0 +1,20 @@ +#!/bin/sh +# http://www.selenic.com/mercurial/bts/issue322 + +hg init a +cd a +echo a > a +hg commit -Ama +rm a +mkdir a +echo a > a/a + +echo % should fail - will corrupt dirstate +hg add a/a +hg commit -mb + +echo % should fail - manifest is corrupt +hg verify +cd .. + +hg --debug --traceback clone a b