obslog: have at least one test that shows multiple dates with -f flag
authorAnton Shestakov <av6@dwimlabs.net>
Tue, 18 Feb 2020 17:31:41 +0800
changeset 5167 471b7a4acf9b
parent 5166 27845c5aefb3
child 5168 c7ca43bba6c5
obslog: have at least one test that shows multiple dates with -f flag
tests/test-evolve-obshistory-amend.t
--- a/tests/test-evolve-obshistory-amend.t	Tue Feb 18 15:21:14 2020 +0800
+++ b/tests/test-evolve-obshistory-amend.t	Tue Feb 18 17:31:41 2020 +0800
@@ -285,7 +285,7 @@
   $ hg amend -m "A2
   > 
   > Better better commit message"
-  $ hg amend -m "A3
+  $ hg amend --config devel.default-date='1 0' -m "A3
   > 
   > Better better better commit message"
   $ sync
@@ -329,7 +329,7 @@
   @  92210308515b (4) A3
   |
   x  4f1685185907 (3) A2
-  |    reworded(description) as 92210308515b using amend by test (Thu Jan 01 00:00:00 1970 +0000)
+  |    reworded(description) as 92210308515b using amend by test (Thu Jan 01 00:00:01 1970 +0000)
   |      diff -r 4f1685185907 -r 92210308515b changeset-description
   |      --- a/changeset-description
   |      +++ b/changeset-description
@@ -424,7 +424,7 @@
   o  92210308515b (2) A3
   |
   x  4f1685185907
-  |    reworded(description) as 92210308515b using amend by test (Thu Jan 01 00:00:00 1970 +0000)
+  |    reworded(description) as 92210308515b using amend by test (Thu Jan 01 00:00:01 1970 +0000)
   |      (No patch available, context is not local)
   |
   x  4ae3a4151de9 (1) A1
@@ -439,7 +439,7 @@
   o  92210308515b (2) A3
   |
   x  4ae3a4151de9 (1) A1
-       reworded(description) as 92210308515b using amend by test (at Thu Jan 01 00:00:00 1970 +0000)
+       reworded(description) as 92210308515b using amend by test (between Thu Jan 01 00:00:00 1970 +0000 and Thu Jan 01 00:00:01 1970 +0000)
          diff -r 4ae3a4151de9 -r 92210308515b changeset-description
          --- a/changeset-description
          +++ b/changeset-description
@@ -455,7 +455,7 @@
   92210308515b (2) A3
   
   4f1685185907
-    reworded(description) as 92210308515b using amend by test (Thu Jan 01 00:00:00 1970 +0000)
+    reworded(description) as 92210308515b using amend by test (Thu Jan 01 00:00:01 1970 +0000)
       (No patch available, context is not local)
   
   4ae3a4151de9 (1) A1
@@ -471,7 +471,7 @@
   92210308515b (2) A3
   
   4f1685185907
-    reworded(description) as 92210308515b using amend by test (Thu Jan 01 00:00:00 1970 +0000)
+    reworded(description) as 92210308515b using amend by test (Thu Jan 01 00:00:01 1970 +0000)
       (No patch available, context is not local)
   
   4ae3a4151de9 (1) A1