From 3fc8227a7c6ff33fb3ad4cfbe171a519a9106bf8 Mon Sep 17 00:00:00 2001 From: mhagger Date: Thu, 9 Dec 2010 08:45:37 +0000 Subject: [PATCH] Update to rcsparse r2495. git-svn-id: http://cvs2svn.tigris.org/svn/cvs2svn/trunk@5307 be7e6eca-30d4-0310-a8e5-ac0d63af7087 --- cvs2svn_rcsparse/common.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cvs2svn_rcsparse/common.py b/cvs2svn_rcsparse/common.py index ca9cff9b..006cc340 100644 --- a/cvs2svn_rcsparse/common.py +++ b/cvs2svn_rcsparse/common.py @@ -365,8 +365,11 @@ class _Parser: date_fields = map(string.atoi, date_fields) EPOCH = 1970 if date_fields[0] < EPOCH: - raise ValueError, 'invalid year' - timestamp = calendar.timegm(tuple(date_fields) + (0, 0, 0,)) + raise ValueError, 'invalid year for revision %s' % (revision,) + try: + timestamp = calendar.timegm(tuple(date_fields) + (0, 0, 0,)) + except ValueError, e: + raise ValueError, 'invalid date for revision %s: %s' % (revision, e,) # Parse author ### NOTE: authors containing whitespace are violations of the -- 2.11.4.GIT