author | Matt Mackall <mpm@selenic.com> |
Wed, 06 Dec 2006 13:13:27 -0600 | |
changeset 3809 | e43b48f0f718 |
parent 3808 | 92a3532a01d9 |
child 3810 | d6529582942a |
mercurial/util.py | file | annotate | diff | comparison | revisions |
--- a/mercurial/util.py +++ b/mercurial/util.py @@ -1066,6 +1066,8 @@ def parsedate(string, formats=None): """parse a localized time string and return a (unixtime, offset) tuple. The date may be a "unixtime offset" string or in one of the specified formats.""" + if not string: + return 0, 0 if not formats: formats = defaultdateformats try: