Mercurial > evolve
diff tests/test-metaedit.t @ 4898:9936aecc9ea3 stable
metaedit: don't change commit date by default (issue5994)
We deliberately unset devel.default-date to allow hg commands to see the real
system date, that demonstrates that metaedit doesn't fall back to system date
for any of these commands.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Wed, 09 Oct 2019 21:22:03 +0700 |
parents | 20380ae44d0f |
children | 08112f100d70 |
line wrap: on
line diff
--- a/tests/test-metaedit.t Wed Oct 09 20:16:38 2019 +0700 +++ b/tests/test-metaedit.t Wed Oct 09 21:22:03 2019 +0700 @@ -171,11 +171,20 @@ | ~ -TODO: don't create a new commit in this case, we should take the date of the -old commit (we add a default date with a value to show that metaedit is taking -the current date to generate the hash, this way we still have a stable hash -but highlight the bug) - $ hg metaedit --config devel.default-date="42 0" +metaedit should preserve the original date of the edited commit (issue5994) + + $ hg metaedit --config devel.default-date= + nothing changed + +metaedit doesn't create new commit if message and user aren't changed + + $ hg metaedit --config devel.default-date= --user test --message 'E + > + > + > F' + nothing changed + + $ hg metaedit --config devel.default-date= --date "42 0" 0 files updated, 0 files merged, 0 files removed, 0 files unresolved $ hg log -r '.^::.' --template '{rev}: {desc|firstline}\n' 3: C