tests: unify test-backwards-remove
authorMartin Geisler <mg@lazybytes.net>
Sat, 14 Aug 2010 02:30:05 +0200
changeset 11857 9661514f85ae
parent 11856 db969ebdebd9
child 11858 934c7e91c126
tests: unify test-backwards-remove
tests/test-backwards-remove
tests/test-backwards-remove.out
tests/test-backwards-remove.t
--- a/tests/test-backwards-remove	Sat Aug 14 02:28:53 2010 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,12 +0,0 @@
-#!/bin/sh
-hg init
-echo This is file a1 > a
-hg add a
-hg commit -m "commit #0" -d "1000000 0"
-ls
-echo This is file b1 > b
-hg add b
-hg commit -m "commit #1" -d "1000000 0"
-hg co 0
-# B should disappear
-ls
--- a/tests/test-backwards-remove.out	Sat Aug 14 02:28:53 2010 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,3 +0,0 @@
-a
-0 files updated, 0 files merged, 1 files removed, 0 files unresolved
-a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/test-backwards-remove.t	Sat Aug 14 02:30:05 2010 +0200
@@ -0,0 +1,16 @@
+  $ hg init
+  $ echo This is file a1 > a
+  $ hg add a
+  $ hg commit -m "commit #0" -d "1000000 0"
+  $ ls
+  a
+  $ echo This is file b1 > b
+  $ hg add b
+  $ hg commit -m "commit #1" -d "1000000 0"
+  $ hg co 0
+  0 files updated, 0 files merged, 1 files removed, 0 files unresolved
+
+B should disappear
+
+  $ ls
+  a