tests: unify test-dirstate-future
authorAdrian Buehlmann <adrian@cadifra.com>
Thu, 12 Aug 2010 20:25:37 +0200
changeset 11866 c4e2eb4871d7
parent 11865 400aa8f28f6b
child 11867 20bd477d0e89
tests: unify test-dirstate-future
tests/test-dirstate-future
tests/test-dirstate-future.out
tests/test-dirstate-future.t
--- 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
+