Patchwork [8,of,8] test: remove aliases forcing date, use default-date

login
register
mail settings
Submitter Boris Feld
Date May 22, 2017, 6:46 p.m.
Message ID <ac6570e8cc4fef4096b4.1495478788@FB>
Download mbox | patch
Permalink /patch/20833/
State Accepted
Headers show

Comments

Boris Feld - May 22, 2017, 6:46 p.m.
# HG changeset patch
# User Boris Feld <boris.feld@octobus.net>
# Date 1495474161 -7200
#      Mon May 22 19:29:21 2017 +0200
# Node ID ac6570e8cc4fef4096b4e54022d018e5be1f9dd2
# Parent  3f99909fc9ab881157bbac1ecd84f4f0483d4345
# EXP-Topic develforcedate
test: remove aliases forcing date, use default-date

Now that we have the default-date by default and all code have been updated,
remove the old commands alias that forced the date as they are not longer
useful.

Writing tests now should be easier for everyone now that all dates should be
stable.
Augie Fackler - May 22, 2017, 7:31 p.m.
On Mon, May 22, 2017 at 08:46:28PM +0200, Boris Feld wrote:
> # HG changeset patch
> # User Boris Feld <boris.feld@octobus.net>
> # Date 1495474161 -7200
> #      Mon May 22 19:29:21 2017 +0200
> # Node ID ac6570e8cc4fef4096b4e54022d018e5be1f9dd2
> # Parent  3f99909fc9ab881157bbac1ecd84f4f0483d4345
> # EXP-Topic develforcedate
> test: remove aliases forcing date, use default-date

queued, thanks

Patch

diff -r 3f99909fc9ab881157bbac1ecd84f4f0483d4345 -r ac6570e8cc4fef4096b4e54022d018e5be1f9dd2 tests/run-tests.py
--- a/tests/run-tests.py	Mon May 22 19:28:47 2017 +0200
+++ b/tests/run-tests.py	Mon May 22 19:29:21 2017 +0200
@@ -950,10 +950,6 @@ 
         hgrc.write(b'mergemarkers = detailed\n')
         hgrc.write(b'promptecho = True\n')
         hgrc.write(b'[defaults]\n')
-        hgrc.write(b'backout = -d "0 0"\n')
-        hgrc.write(b'commit = -d "0 0"\n')
-        hgrc.write(b'shelve = --date "0 0"\n')
-        hgrc.write(b'tag = -d "0 0"\n')
         hgrc.write(b'[devel]\n')
         hgrc.write(b'all-warnings = true\n')
         hgrc.write(b'default-date = 0 0\n')
diff -r 3f99909fc9ab881157bbac1ecd84f4f0483d4345 -r ac6570e8cc4fef4096b4e54022d018e5be1f9dd2 tests/test-basic.t
--- a/tests/test-basic.t	Mon May 22 19:28:47 2017 +0200
+++ b/tests/test-basic.t	Mon May 22 19:29:21 2017 +0200
@@ -1,10 +1,6 @@ 
 Create a repository:
 
   $ hg config
-  defaults.backout=-d "0 0"
-  defaults.commit=-d "0 0"
-  defaults.shelve=--date "0 0"
-  defaults.tag=-d "0 0"
   devel.all-warnings=true
   devel.default-date=0 0
   largefiles.usercache=$TESTTMP/.cache/largefiles (glob)
diff -r 3f99909fc9ab881157bbac1ecd84f4f0483d4345 -r ac6570e8cc4fef4096b4e54022d018e5be1f9dd2 tests/test-commandserver.t
--- a/tests/test-commandserver.t	Mon May 22 19:28:47 2017 +0200
+++ b/tests/test-commandserver.t	Mon May 22 19:29:21 2017 +0200
@@ -187,10 +187,6 @@ 
   ...     runcommand(server, ['-R', 'foo', 'showconfig', 'ui', 'defaults'])
   *** runcommand showconfig
   bundle.mainreporoot=$TESTTMP/repo
-  defaults.backout=-d "0 0"
-  defaults.commit=-d "0 0"
-  defaults.shelve=--date "0 0"
-  defaults.tag=-d "0 0"
   devel.all-warnings=true
   devel.default-date=0 0
   largefiles.usercache=$TESTTMP/.cache/largefiles
@@ -204,10 +200,6 @@ 
   web\.ipv6=(?:True|False) (re)
   *** runcommand init foo
   *** runcommand -R foo showconfig ui defaults
-  defaults.backout=-d "0 0"
-  defaults.commit=-d "0 0"
-  defaults.shelve=--date "0 0"
-  defaults.tag=-d "0 0"
   ui.slash=True
   ui.interactive=False
   ui.mergemarkers=detailed