# HG changeset patch # User Nicolas Dumazet # Date 1283141298 -32400 # Node ID 4d6bb76155649063618f2a3cd8fa094d98fd93bc # Parent 54c9549ccb224b5f3f60fa10316aa6970ece4372 tests: unify test-remove-new diff -r 54c9549ccb22 -r 4d6bb7615564 tests/test-remove-new --- a/tests/test-remove-new Mon Aug 30 13:02:54 2010 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,14 +0,0 @@ -#!/bin/sh - -# test that 'hg commit' does not crash if the user removes a -# newly added file - -hg init -echo This is file a1 > a -hg add a -hg commit -m "commit #0" -d "1000000 0" -touch b -hg add b -rm b -hg commit -A -m"comment #1" -d "1000000 0" -exit 0 diff -r 54c9549ccb22 -r 4d6bb7615564 tests/test-remove-new.out --- a/tests/test-remove-new.out Mon Aug 30 13:02:54 2010 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,2 +0,0 @@ -removing b -nothing changed diff -r 54c9549ccb22 -r 4d6bb7615564 tests/test-remove-new.t --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/test-remove-new.t Mon Aug 30 13:08:18 2010 +0900 @@ -0,0 +1,13 @@ +test that 'hg commit' does not crash if the user removes a newly added file + + $ hg init + $ echo This is file a1 > a + $ hg add a + $ hg commit -m "commit #0" -d "1000000 0" + $ touch b + $ hg add b + $ rm b + $ hg commit -A -m"comment #1" -d "1000000 0" + removing b + nothing changed + $ exit 0