devel: activate default-date in tests
It will make writing future tests more easier for everyone as we won't need to
glob dates anymore in tests.
--- a/tests/run-tests.py Fri May 19 12:18:25 2017 +0200
+++ b/tests/run-tests.py Mon May 22 16:59:57 2017 +0200
@@ -956,6 +956,7 @@
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')
hgrc.write(b'[largefiles]\n')
hgrc.write(b'usercache = %s\n' %
(os.path.join(self._testtmp, b'.cache/largefiles')))
--- a/tests/test-basic.t Fri May 19 12:18:25 2017 +0200
+++ b/tests/test-basic.t Mon May 22 16:59:57 2017 +0200
@@ -6,6 +6,7 @@
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)
ui.slash=True
ui.interactive=False
--- a/tests/test-commandserver.t Fri May 19 12:18:25 2017 +0200
+++ b/tests/test-commandserver.t Mon May 22 16:59:57 2017 +0200
@@ -192,6 +192,7 @@
defaults.shelve=--date "0 0"
defaults.tag=-d "0 0"
devel.all-warnings=true
+ devel.default-date=0 0
largefiles.usercache=$TESTTMP/.cache/largefiles
ui.slash=True
ui.interactive=False
--- a/tests/test-commit.t Fri May 19 12:18:25 2017 +0200
+++ b/tests/test-commit.t Mon May 22 16:59:57 2017 +0200
@@ -120,7 +120,7 @@
An empty date was interpreted as epoch origin
$ echo foo >> foo
- $ hg commit -d '' -m commit-no-date
+ $ hg commit -d '' -m commit-no-date --config devel.default-date=
$ hg tip --template '{date|isodate}\n' | grep '1970'
[1]