changeset 11866:c4e2eb4871d7

tests: unify test-dirstate-future
author Adrian Buehlmann <adrian@cadifra.com>
date Thu, 12 Aug 2010 20:25:37 +0200
parents 400aa8f28f6b
children 20bd477d0e89
files tests/test-dirstate-future tests/test-dirstate-future.out tests/test-dirstate-future.t
diffstat 3 files changed, 18 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-dirstate-future	Thu Aug 12 17:30:12 2010 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
-#!/bin/sh
-
-hg init
-echo a > a
-hg add
-hg ci -m1
-
-# set mtime of a into the future
-touch -t 202101011200 a
-
-# status must not set a's entry to unset (issue1790)
-hg status
-hg debugstate
--- a/tests/test-dirstate-future.out	Thu Aug 12 17:30:12 2010 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,2 +0,0 @@
-adding a
-n 644          2 2021-01-01 12:00:00 a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/test-dirstate-future.t	Thu Aug 12 20:25:37 2010 +0200
@@ -0,0 +1,18 @@
+Prepare test repo:
+
+  $ hg init
+  $ echo a > a
+  $ hg add
+  adding a
+  $ hg ci -m1
+
+Set mtime of a into the future:
+
+  $ touch -t 202101011200 a
+
+Status must not set a's entry to unset (issue1790):
+
+  $ hg status
+  $ hg debugstate
+  n 644          2 2021-01-01 12:00:00 a
+