Home > Archive > PHP Documentation > September 2006 > Re: [PHP-DOC] Problems with new CVS web view
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: [PHP-DOC] Problems with new CVS web view
|
|
| Nuno Lopes 2005-12-16, 7:56 am |
| Redirecting to system admins..
----- Original Message -----
From: "Dallas Thunder" <dallas@php.net>
To: <phpdoc@lists.php.net>
Sent: Friday, December 16, 2005 2:25 AM
Subject: [PHP-DOC] Problems with new CVS web view
> The problem can be regenerated at:
> http://cvs.php.net/viewcvs.cgi/phpd...r1=1.21&r2=1.23
>
> Results:
>
> An Exception Has Occurred
> Python Traceback
>
> Traceback (most recent call last):
> File "/usr/local/viewcvs-1.0-dev/lib/viewcvs.py", line 3486, in main
> request.run_viewcvs()
> File "/usr/local/viewcvs-1.0-dev/lib/viewcvs.py", line 370, in
> run_viewcvs
> self.view_func(self)
> File "/usr/local/viewcvs-1.0-dev/lib/viewcvs.py", line 2749, in view_diff
> data.update({
> File "/usr/local/viewcvs-1.0-dev/lib/viewcvs.py", line 2358, in
> rcsdiff_date_reformat
> date = compat.cvs_strptime(date_str)
> File "/usr/local/viewcvs-1.0-dev/lib/compat.py", line 51, in cvs_strptime
> return time.strptime(timestr, '%Y/%m/%d %H:%M:%S')[:-1] + (0,)
> File "/usr/local/lib/python2.4/_strptime.py", line 291, in strptime
> found = format_regex.match(data_string)
> TypeError: expected string or buffer
> Looks like happened when two compared versions are identical. I'm not
> sure, maybe just something wrong with my browser. Please verify it.
| |
| Rasmus Lerdorf 2006-01-09, 8:02 pm |
| This should be fixed now. It was getting about an empty diff
due to the revert there.
-Rasmus
Nuno Lopes wrote:[color=darkred]
> Redirecting to system admins..
>
> ----- Original Message ----- From: "Dallas Thunder" <dallas@php.net>
> To: <phpdoc@lists.php.net>
> Sent: Friday, December 16, 2005 2:25 AM
> Subject: [PHP-DOC] Problems with new CVS web view
>
>
| |
| borism 2006-09-18, 8:24 am |
| The Diff function inside code raised exception then two divisions
were equal. (For example choosing a first revision).
Solution: I added the exception handler into the code
def rcsdiff_date_reformat(date_str, cfg):
try:
date = compat.cvs_strptime(date_str)
except ValueError:
return date_str
except TypeError:
return date_str
quote: Originally posted by Rasmus Lerdorf
This should be fixed now. It was getting about an empty diff
due to the revert there.
-Rasmus
Nuno Lopes wrote:[color=darkred]
> Redirecting to system admins..
>
> ----- Original Message ----- From: "Dallas Thunder" <dallas@php.net>
> To: <phpdoc@lists.php.net>
> Sent: Friday, December 16, 2005 2:25 AM
> Subject: [PHP-DOC] Problems with new CVS web view
>
>
 |
|
|
|
|