diff tests/test-parse-date.t @ 18614:b2586e2cc67a

parsedate: understand "now" as a shortcut for the current time
author Augie Fackler <raf@durin42.com>
date Sat, 09 Feb 2013 15:39:22 -0600
parents ae60735e37d2
children 5df7118bdcd9
line wrap: on
line diff
--- a/tests/test-parse-date.t	Sat Feb 09 15:38:57 2013 -0600
+++ b/tests/test-parse-date.t	Sat Feb 09 15:39:22 2013 -0600
@@ -251,3 +251,8 @@
   $ hg ci -d "`sed -n '2p' dates`" -m "the time traveler's code"
   $ hg log -d yesterday --template '{desc}\n'
   the time traveler's code
+  $ echo "foo" >> a
+  $ hg commit -d now -m 'Explicitly committed now.'
+  $ hg log -d today --template '{desc}\n'
+  Explicitly committed now.
+  today is a good day to code