diff tests/test-amend.t @ 41173:4145fd3569c3

amend: turn currentdate into tri-state bool so config option can be negated Otherwise, rewrite.update-timestap couldn't be overridden by --no-currentdate. FWIW, which do we like? --no-currentdate vs --no-current-date. If the latter is preferred, maybe we can add "graft --current-date" and deprecate "--currentdate".
author Yuya Nishihara <yuya@tcha.org>
date Thu, 10 Jan 2019 21:32:37 +0900
parents 126101284e04
children 6acbe86c6490
line wrap: on
line diff
--- a/tests/test-amend.t	Fri Jan 04 17:54:18 2019 +0100
+++ b/tests/test-amend.t	Thu Jan 10 21:32:37 2019 +0900
@@ -453,6 +453,14 @@
   date:        Thu Jan 01 00:00:05 1970 +0000
   summary:     commit 1
 
+rewrite.update-timestamp can be negated by --no-currentdate
+
+  $ hg amend --config rewrite.update-timestamp=True --no-currentdate -u baz
+  $ hg log --limit 1
+  user:        baz
+  date:        Thu Jan 01 00:00:05 1970 +0000
+  summary:     commit 1
+
 Bad combination of date options:
 
   $ hg amend -D --date '0 0'