diff tests/test-subrepo-git.t @ 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 940c05b25b07
children 642feee29d70
line wrap: on
line diff
--- 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