Mercurial > hg-stable
changeset 11857:9661514f85ae
tests: unify test-backwards-remove
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Sat, 14 Aug 2010 02:30:05 +0200 |
parents | db969ebdebd9 |
children | 934c7e91c126 |
files | tests/test-backwards-remove tests/test-backwards-remove.out tests/test-backwards-remove.t |
diffstat | 3 files changed, 16 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- 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