diff tests/test-flags.t @ 12156:4c94b6d0fb1c

tests: remove unneeded -d flags Many tests fixed the commit date of their changesets at '1000000 0' or similar. However testing with "Mon Jan 12 13:46:40 1970 +0000" is not better than testing with "Thu Jan 01 00:00:00 1970 +0000", which is the default run-tests.py installs. Removing the unnecessary flag removes some clutter and will hopefully make it clearer what the tests are really trying to test. Some tests did not even change their output when the dates were changed, in which case the -d flag was truly irrelevant. Dates used in sequence (such as '0 0', '1 0', etc...) were left alone since they may make the test easier to understand.
author Martin Geisler <mg@lazybytes.net>
date Thu, 02 Sep 2010 23:22:51 +0200
parents 47d2b4a5bd1e
children ffb5c09ba822
line wrap: on
line diff
--- a/tests/test-flags.t	Thu Sep 02 22:17:22 2010 +0200
+++ b/tests/test-flags.t	Thu Sep 02 23:22:51 2010 +0200
@@ -5,7 +5,7 @@
   $ hg init
   $ touch a b
   $ hg add a b
-  $ hg ci -m "added a b" -d "1000000 0"
+  $ hg ci -m "added a b"
 
   $ cd ..
   $ hg clone test1 test3
@@ -26,7 +26,7 @@
   $ hg co
   2 files updated, 0 files merged, 0 files removed, 0 files unresolved
   $ chmod +x a
-  $ hg ci -m "chmod +x a" -d "1000000 0"
+  $ hg ci -m "chmod +x a"
 
 the changelog should mention file a:
 
@@ -35,7 +35,7 @@
 
   $ cd ../test1
   $ echo 123 >>a
-  $ hg ci -m "a updated" -d "1000000 0"
+  $ hg ci -m "a updated"
 
   $ hg pull ../test2
   pulling from ../test2
@@ -46,34 +46,34 @@
   added 1 changesets with 0 changes to 0 files (+1 heads)
   (run 'hg heads' to see heads, 'hg merge' to merge)
   $ hg heads
-  changeset:   2:37dccb76c058
+  changeset:   2:7f4313b42a34
   tag:         tip
-  parent:      0:4536b1c2ca69
+  parent:      0:22a449e20da5
   user:        test
-  date:        Mon Jan 12 13:46:40 1970 +0000
+  date:        Thu Jan 01 00:00:00 1970 +0000
   summary:     chmod +x a
   
-  changeset:   1:a187cb361a5a
+  changeset:   1:c6ecefc45368
   user:        test
-  date:        Mon Jan 12 13:46:40 1970 +0000
+  date:        Thu Jan 01 00:00:00 1970 +0000
   summary:     a updated
   
   $ hg history
-  changeset:   2:37dccb76c058
+  changeset:   2:7f4313b42a34
   tag:         tip
-  parent:      0:4536b1c2ca69
+  parent:      0:22a449e20da5
   user:        test
-  date:        Mon Jan 12 13:46:40 1970 +0000
+  date:        Thu Jan 01 00:00:00 1970 +0000
   summary:     chmod +x a
   
-  changeset:   1:a187cb361a5a
+  changeset:   1:c6ecefc45368
   user:        test
-  date:        Mon Jan 12 13:46:40 1970 +0000
+  date:        Thu Jan 01 00:00:00 1970 +0000
   summary:     a updated
   
-  changeset:   0:4536b1c2ca69
+  changeset:   0:22a449e20da5
   user:        test
-  date:        Mon Jan 12 13:46:40 1970 +0000
+  date:        Thu Jan 01 00:00:00 1970 +0000
   summary:     added a b
   
 
@@ -84,7 +84,7 @@
 
   $ cd ../test3
   $ echo 123 >>b
-  $ hg ci -m "b updated" -d "1000000 0"
+  $ hg ci -m "b updated"
 
   $ hg pull ../test2
   pulling from ../test2
@@ -95,34 +95,34 @@
   added 1 changesets with 0 changes to 0 files (+1 heads)
   (run 'hg heads' to see heads, 'hg merge' to merge)
   $ hg heads
-  changeset:   2:37dccb76c058
+  changeset:   2:7f4313b42a34
   tag:         tip
-  parent:      0:4536b1c2ca69
+  parent:      0:22a449e20da5
   user:        test
-  date:        Mon Jan 12 13:46:40 1970 +0000
+  date:        Thu Jan 01 00:00:00 1970 +0000
   summary:     chmod +x a
   
-  changeset:   1:d54568174d8e
+  changeset:   1:dc57ead75f79
   user:        test
-  date:        Mon Jan 12 13:46:40 1970 +0000
+  date:        Thu Jan 01 00:00:00 1970 +0000
   summary:     b updated
   
   $ hg history
-  changeset:   2:37dccb76c058
+  changeset:   2:7f4313b42a34
   tag:         tip
-  parent:      0:4536b1c2ca69
+  parent:      0:22a449e20da5
   user:        test
-  date:        Mon Jan 12 13:46:40 1970 +0000
+  date:        Thu Jan 01 00:00:00 1970 +0000
   summary:     chmod +x a
   
-  changeset:   1:d54568174d8e
+  changeset:   1:dc57ead75f79
   user:        test
-  date:        Mon Jan 12 13:46:40 1970 +0000
+  date:        Thu Jan 01 00:00:00 1970 +0000
   summary:     b updated
   
-  changeset:   0:4536b1c2ca69
+  changeset:   0:22a449e20da5
   user:        test
-  date:        Mon Jan 12 13:46:40 1970 +0000
+  date:        Thu Jan 01 00:00:00 1970 +0000
   summary:     added a b