# HG changeset patch # User Pierre-Yves David <pierre-yves.da...@octobus.net> # Date 1495465197 -7200 # Mon May 22 16:59:57 2017 +0200 # Node ID 93f928e5fc97a1a2f6419382da1687582dbcca03 # Parent 007ae7c431a3a049ec4c2faf676eda8ed1b0d5f6 # EXP-Topic develforcedate 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. diff -r 007ae7c431a3a049ec4c2faf676eda8ed1b0d5f6 -r 93f928e5fc97a1a2f6419382da1687582dbcca03 tests/run-tests.py --- 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'))) diff -r 007ae7c431a3a049ec4c2faf676eda8ed1b0d5f6 -r 93f928e5fc97a1a2f6419382da1687582dbcca03 tests/test-basic.t --- 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 diff -r 007ae7c431a3a049ec4c2faf676eda8ed1b0d5f6 -r 93f928e5fc97a1a2f6419382da1687582dbcca03 tests/test-commandserver.t --- 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 diff -r 007ae7c431a3a049ec4c2faf676eda8ed1b0d5f6 -r 93f928e5fc97a1a2f6419382da1687582dbcca03 tests/test-commit.t --- 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] _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel