[PATCH] tests: unify test-dirstate-future
Adrian Buehlmann
adrian at cadifra.com
Thu Aug 12 13:28:22 CDT 2010
# HG changeset patch
# User Adrian Buehlmann <adrian at cadifra.com>
# Date 1281637537 -7200
# Node ID 8958614355c61bf2454dd0a271fe56d7d2685de2
# Parent f1c2de22b8a88baf36c69b852f8a3b35ca6b6c91
tests: unify test-dirstate-future
diff --git a/tests/test-dirstate-future.out b/tests/test-dirstate-future.out
deleted file mode 100644
--- a/tests/test-dirstate-future.out
+++ /dev/null
@@ -1,2 +0,0 @@
-adding a
-n 644 2 2021-01-01 12:00:00 a
diff --git a/tests/test-dirstate-future b/tests/test-dirstate-future.t
old mode 100755
new mode 100644
rename from tests/test-dirstate-future
rename to tests/test-dirstate-future.t
--- a/tests/test-dirstate-future
+++ b/tests/test-dirstate-future.t
@@ -1,13 +1,18 @@
-#!/bin/sh
+Prepare test repo:
-hg init
-echo a > a
-hg add
-hg ci -m1
+ $ hg init
+ $ echo a > a
+ $ hg add
+ adding a
+ $ hg ci -m1
-# set mtime of a into the future
-touch -t 202101011200 a
+Set mtime of a into the future:
-# status must not set a's entry to unset (issue1790)
-hg status
-hg debugstate
+ $ 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
+
More information about the Mercurial-devel
mailing list