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

Boris Feld boris.feld at octobus.net
Mon May 22 14:46:28 EDT 2017


# HG changeset patch
# User Boris Feld <boris.feld at 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.

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


More information about the Mercurial-devel mailing list