# HG changeset patch # User Matt Mackall # Date 1165432407 21600 # Node ID e43b48f0f71888de007884707b59b9f70d956431 # Parent 92a3532a01d9ca58ceb0d3411d2464a9a5015534 parsedate: allow '' for epoch diff --git a/mercurial/util.py b/mercurial/util.py --- 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: