changeset 5446:5fc54b8f3f84

tests: move default-date manipulation closer to the commands that need it
author Anton Shestakov <av6@dwimlabs.net>
date Thu, 28 May 2020 12:07:59 +0800
parents d0b0ef0ba094
children ce56d29c3382
files tests/test-rewind.t
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-rewind.t	Mon May 25 19:58:33 2020 +0800
+++ b/tests/test-rewind.t	Thu May 28 12:07:59 2020 +0800
@@ -381,11 +381,11 @@
      date:        Thu Jan 01 00:00:00 1970 +0000
      summary:     c_ROOT
   
-  $ echo 'default-date = 2 0' >> $HGRCPATH
 
 rewind a simple amend - obsoleting the current latest successors
 ----------------------------------------------------------------
 
+  $ echo 'default-date = 2 0' >> $HGRCPATH
   $ hg rewind --hidden --to 'min(desc("c_B0"))'
   rewound to 1 changesets
   (1 changesets obsoleted)
@@ -843,7 +843,6 @@
   rewound to 1 changesets
   (1 changesets obsoleted)
   working directory is now at a5dd64adbb2a
-  $ echo 'default-date = 5 0' >> $HGRCPATH
   $ hg log -G
   @  changeset:   6:a5dd64adbb2a
   |  tag:         tip
@@ -887,6 +886,7 @@
 Automatically rewinding the full stack (with --to)
 --------------------------------------------------
 
+  $ echo 'default-date = 5 0' >> $HGRCPATH
   $ hg rewind --hidden --to 'predecessors(.)'
   rewound to 2 changesets
   (2 changesets obsoleted)