# HG changeset patch # User Mads Kiilerich # Date 2012-07-04 00:04:58 # Node ID 09305d7745ddca6f9c1593cad2f8aabc0bfb1812 # Parent 885542e7d9b6e25b88fbbbaf06f23f28a8cc80f6 tests: don't use dates before epoch in test-keyword.t Timezone offsets of less than a minute is not shown but can cause displayed dates to be before epoch start - and dates before epoch start is not shown correctly on Windows (see also 4d5b12a5517b). These 'negative' dates could be considered undefined behaviour so we don't care and swap the tests values for timestamp and timezone. diff --git a/tests/test-keyword.t b/tests/test-keyword.t --- a/tests/test-keyword.t +++ b/tests/test-keyword.t @@ -334,7 +334,7 @@ record chunk >>> lines.insert(1, 'foo\n') >>> lines.append('bar\n') >>> open('a', 'w').writelines(lines) - $ hg record -d '1 10' -m rectest a< y > y > n @@ -355,7 +355,7 @@ record chunk record change 2/2 to 'a'? [Ynesfdaq?] $ hg identify - d17e03c92c97+ tip + 5f5eb23505c3+ tip $ hg status M a A r @@ -363,7 +363,7 @@ record chunk Cat modified file a $ cat a - expand $Id: a,v d17e03c92c97 1970/01/01 00:00:01 test $ + expand $Id: a,v 5f5eb23505c3 1970/01/01 00:00:10 test $ foo do not process $Id: xxx $ @@ -372,8 +372,8 @@ Cat modified file a Diff remaining chunk $ hg diff a - diff -r d17e03c92c97 a - --- a/a Wed Dec 31 23:59:51 1969 -0000 + diff -r 5f5eb23505c3 a + --- a/a Thu Jan 01 00:00:09 1970 -0000 +++ b/a * (glob) @@ -2,3 +2,4 @@ foo @@ -391,7 +391,7 @@ Record all chunks in file a - do not use "hg record -m" here! - $ hg record -l msg -d '1 11' a< y > y > y @@ -419,7 +419,7 @@ File a should be clean rollback and revert expansion $ cat a - expand $Id: a,v 59f969a3b52c 1970/01/01 00:00:01 test $ + expand $Id: a,v 78e0a02d76aa 1970/01/01 00:00:11 test $ foo do not process $Id: xxx $ @@ -460,14 +460,14 @@ Only z should be overwritten record added file alone - $ hg -v record -l msg -d '1 12' r< y > EOF diff --git a/r b/r new file mode 100644 examine changes to 'r'? [Ynesfdaq?] r - committed changeset 3:899491280810 + committed changeset 3:82a2f715724d overwriting r expanding keywords - status call required for dirstate.normallookup() check $ hg status r @@ -484,14 +484,14 @@ record added keyword ignored file $ echo '$Id$' > i $ hg add i - $ hg --verbose record -d '1 13' -m recignored< y > EOF diff --git a/i b/i new file mode 100644 examine changes to 'i'? [Ynesfdaq?] i - committed changeset 3:5f40fe93bbdc + committed changeset 3:9f40ceb5a072 $ cat i $Id$ $ hg -q rollback @@ -502,14 +502,14 @@ amend $ echo amend >> a $ echo amend >> b - $ hg -q commit -d '1 14' -m 'prepare amend' + $ hg -q commit -d '14 1' -m 'prepare amend' - $ hg --debug commit --amend -d '1 15' -m 'amend without changes' | grep keywords + $ hg --debug commit --amend -d '15 1' -m 'amend without changes' | grep keywords overwriting a expanding keywords $ hg -q id - a71343332ea9 + 577e60613a88 $ head -1 a - expand $Id: a,v a71343332ea9 1970/01/01 00:00:01 test $ + expand $Id: a,v 577e60613a88 1970/01/01 00:00:15 test $ $ hg -q strip -n tip