comparison tests/test-evolve.t @ 2481:d63f383e43b6 stable

test: fix test-evolve.t Metaedit take the current date when no date is given. When we added default- date, the date ended up to be the same and the behavior changed. Fix the text by disabling default-date in the metaedit call and update the comment about what is needed to fix correctly the test; take the changeset date when metaediting only one changeset.
author Boris Feld <boris.feld@octobus.net>
date Fri, 26 May 2017 15:01:21 +0200
parents 0751c8f6005d
children db565cc05987
comparison
equal deleted inserted replaced
2479:df9233aa4bac 2481:d63f383e43b6
1584 | 1584 |
1585 o 36:43c3f5ef149f@default(draft) add uu 1585 o 36:43c3f5ef149f@default(draft) add uu
1586 | 1586 |
1587 ~ 1587 ~
1588 1588
1589 TODO: don't create a new commit in this case 1589 TODO: don't create a new commit in this case, we should take the date of the
1590 $ hg metaedit --config defaults.metaedit= 1590 old commit (we add a default date with a value to show that metaedit is taking
1591 the current date to generate the hash, this way we still have a stable hash
1592 but highlight the bug)
1593 $ hg metaedit --config defaults.metaedit= --config devel.default-date="42 0"
1591 0 files updated, 0 files merged, 0 files removed, 0 files unresolved 1594 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
1592 $ hg log -r '.^::.' --template '{rev}: {desc|firstline}\n' 1595 $ hg log -r '.^::.' --template '{rev}: {desc|firstline}\n'
1593 36: add uu 1596 36: add uu
1594 45: amended 1597 45: amended
1595 1598