In reply to the following comment in vcpx/repository/darcs/source.py

                # Assume it's a line like
                #    Sun Jan  2 00:24:04 UTC 2005 
                [EMAIL PROTECTED]
                # we used to split on the double space before the email,
                # but in this case this is wrong. Waiting for xml
                output,
                # is it really sane asserting date's length to 28 chars?
                date = l[:28]

Unfortunately it turns out the assumption is not valid: during summer
time I get dates like

    Thu Oct 19 16:43:43 CEST 2006  [EMAIL PROTECTED]
 
where the four-letter timezone makes the date 29 characters.

Sorry, no time to prepare a patch and test it properly, because I'm not
actually using this code, only using it as a model for a script of my
own.  In case it helps, here's the regular expression I'm currently
using in my perl script:

    /^(... ... .\d .\d:\d\d:\d\d ...?. \d\d\d\d)  (.*)/ || die;
    my ($date, $author) = ($1, $2);

-Aaron
_______________________________________________
Tailor mailing list
[email protected]
http://lists.zooko.com/mailman/listinfo/tailor

Reply via email to