# HG changeset patch # User Anton Shestakov # Date 1590638879 -28800 # Node ID 5fc54b8f3f84262967069f606e3f774b41fd945e # Parent d0b0ef0ba094bfc575d1bb61fb38a4209a05b009 tests: move default-date manipulation closer to the commands that need it diff -r d0b0ef0ba094 -r 5fc54b8f3f84 tests/test-rewind.t --- 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)