# HG changeset patch # User Adrian Buehlmann # Date 1281637537 -7200 # Node ID c4e2eb4871d79674e7678d017e940770971cf1df # Parent 400aa8f28f6b85aa2eeeb2f5abb6805703c72e2f tests: unify test-dirstate-future diff -r 400aa8f28f6b -r c4e2eb4871d7 tests/test-dirstate-future --- 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 diff -r 400aa8f28f6b -r c4e2eb4871d7 tests/test-dirstate-future.out --- 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 diff -r 400aa8f28f6b -r c4e2eb4871d7 tests/test-dirstate-future.t --- /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 +