Mercurial > hg-stable
changeset 32451:d6be5b5cc325
test: prepare tests for removing date aliases
In the next patch, I'm gonna removing the global command aliases that force
the epoch date but some tests either fail or their output change after that.
Instead I'm copying the needed aliases in the test files that will otherwise
change.
Update test-rebase-obsolete.t because a revision hash is based on the epoch
date after a 'commit --amend' and the output will change after removing date
aliases.
Update test-subrepo-git.t as the git subrepo doesn't use traditional date
mechanisms. I'm not sure that updating the git subrepo to support default-date
make sense. Add the commit alias to the test in order for making it pass after
removing the date aliases globally.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Mon, 22 May 2017 19:28:47 +0200 |
parents | 043948c84647 |
children | 7b7f55d56076 |
files | tests/test-rebase-obsolete.t tests/test-subrepo-git.t |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-rebase-obsolete.t Tue May 16 18:36:08 2017 +0200 +++ b/tests/test-rebase-obsolete.t Mon May 22 19:28:47 2017 +0200 @@ -902,7 +902,7 @@ $ hg up 9520eea781bc 1 files updated, 0 files merged, 2 files removed, 0 files unresolved $ echo 1 >> E - $ hg commit --amend -m "E'" + $ hg commit --amend -m "E'" -d "0 0" $ hg log -G @ 9:69abe8906104 E' |
--- a/tests/test-subrepo-git.t Tue May 16 18:36:08 2017 +0200 +++ b/tests/test-subrepo-git.t Mon May 22 19:28:47 2017 +0200 @@ -2,6 +2,11 @@ make git commits repeatable + $ cat >> $HGRCPATH <<EOF + > [defaults] + > commit = -d "0 0" + > EOF + $ echo "[core]" >> $HOME/.gitconfig $ echo "autocrlf = false" >> $HOME/.gitconfig $ GIT_AUTHOR_NAME='test'; export GIT_AUTHOR_NAME