# HG changeset patch # User Dirkjan Ochtman # Date 1202917603 -3600 # Node ID e85deb6dcf9d9265a2a35b5ec6fac36dfed28aee # Parent e1f11b8a1e9e6e1ce18aeaba506c904fcfc98878 better handle errors with date parsing (issue983) Windows cannot always handle a 1970-01-01 parameter to time.mktime(). diff -r e1f11b8a1e9e -r e85deb6dcf9d mercurial/util.py --- a/mercurial/util.py Wed Feb 13 05:27:04 2008 +0300 +++ b/mercurial/util.py Wed Feb 13 16:46:43 2008 +0100 @@ -1594,7 +1594,7 @@ for format in formats: try: when, offset = strdate(string, format, defaults) - except ValueError: + except (ValueError, OverflowError): pass else: break