tests/test-metaedit.t
branchstable
changeset 4898 9936aecc9ea3
parent 4897 20380ae44d0f
child 5114 08112f100d70
child 5234 ea3f9e171b9a
--- 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