changeset 6087:12856a1742dc

better handle errors with date parsing (issue983) Windows cannot always handle a 1970-01-01 parameter to time.mktime().
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Wed, 13 Feb 2008 16:46:43 +0100
parents 83633602e2c5
children 3b96cefc1b2b
files mercurial/util.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/util.py	Fri Feb 08 18:07:55 2008 -0200
+++ b/mercurial/util.py	Wed Feb 13 16:46:43 2008 +0100
@@ -1541,7 +1541,7 @@
         for format in formats:
             try:
                 when, offset = strdate(string, format, defaults)
-            except ValueError:
+            except (ValueError, OverflowError):
                 pass
             else:
                 break