Fix commit date (issue1193)
authorChristian Ebert <blacktrash@gmx.net>
Sat, 21 Jun 2008 15:27:51 +0200
changeset 6718 4386a7706828
parent 6717 2011bb8ada9a
child 6719 42dbf9548bc6
Fix commit date (issue1193) The None check in workingctx prevents calling util.makedate when date is not explicitly given.
mercurial/context.py
--- 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()