tests/test-amend.t
changeset 976 bed842762447
parent 975 09d6036ad596
child 984 b286f77d680c
--- a/tests/test-amend.t	Thu Jun 05 21:27:28 2014 -0400
+++ b/tests/test-amend.t	Fri Jun 06 17:43:45 2014 -0400
@@ -83,3 +83,12 @@
   $ hg parents --template '{rev}  {date|date}\n'
   5  Sat Feb 03 04:05:06 2001 +0700
 
+Specify "now" as commit date with -D
+  $ before=`date +%s`
+  $ hg amend -D
+  $ commit=`hg parents --template '{date|hgdate} rev{rev}\n'`
+  $ after=`date +%s`
+  $ (echo $before ; echo $commit; echo $after) | sort -k1 -n -s
+  \d+ (re)
+  \d+ 0 rev6 (re)
+  \d+ (re)