# HG changeset patch # User Nicolas Dumazet # Date 2010-08-30 04:08:18 # Node ID 4d6bb76155649063618f2a3cd8fa094d98fd93bc # Parent 54c9549ccb224b5f3f60fa10316aa6970ece4372 tests: unify test-remove-new diff --git a/tests/test-remove-new.out b/tests/test-remove-new.out deleted file mode 100644 --- a/tests/test-remove-new.out +++ /dev/null @@ -1,2 +0,0 @@ -removing b -nothing changed diff --git a/tests/test-remove-new b/tests/test-remove-new.t old mode 100755 new mode 100644 rename from tests/test-remove-new rename to tests/test-remove-new.t --- a/tests/test-remove-new +++ b/tests/test-remove-new.t @@ -1,14 +1,13 @@ -#!/bin/sh - -# test that 'hg commit' does not crash if the user removes a -# newly added file +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 + $ 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