changeset 6718:4386a7706828

Fix commit date (issue1193) The None check in workingctx prevents calling util.makedate when date is not explicitly given.
author Christian Ebert <blacktrash@gmx.net>
date Sat, 21 Jun 2008 15:27:51 +0200
parents 2011bb8ada9a
children 42dbf9548bc6
files mercurial/context.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/context.py	Thu Jun 19 00:14:24 2008 +0200
+++ b/mercurial/context.py	Sat Jun 21 15:27:51 2008 +0200
@@ -458,7 +458,7 @@
         self._rev = None
         self._node = None
         self._text = text
-        if date is not None:
+        if date:
             self._date = util.parsedate(date)
         else:
             self._date = util.makedate()