# HG changeset patch # User Christian Ebert # Date 2008-06-21 13:27:51 # Node ID 4386a7706828ceb3abf256fcb86a39a65965c910 # Parent 2011bb8ada9ad4e9fafd087453ee0158c050028e Fix commit date (issue1193) The None check in workingctx prevents calling util.makedate when date is not explicitly given. diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -458,7 +458,7 @@ class workingctx(changectx): 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()