5 Usage: <script> <date-or-commit>
10 # do not use Date::Parse; which is not installed on msysGit
14 my $result = `date -d "$date" +%s`;
19 # do not use HTML::Entities; which is not installed on msysGit
21 sub decode_entities
($) {
23 $html =~ s/"/"/g;
27 $html =~ s/&/\&/g;
31 my $since = `git show -s --format=%ct $ARGV[0]^0 2> /dev/null`;
34 $since = str2time
($ARGV[0]);
37 $url = 'http://code.google.com/p/msysgit/issues/list?can=1&num=10000&q=status:';
38 $issue_url = 'http://code.google.com/p/msysgit/issues/detail?id=';
43 my $subject = '<no subject>';
47 open ISSUE
, 'curl -s "' . $issue_url . $id . '" |';
49 if (/<span class="h3" >([^<]+)<\/span
>/) {
50 $subject = decode_entities
($1);
52 elsif (/<span class="date" title="([^"]+)">/) {
53 $cur_date = str2time
($1);
55 elsif (/<b>Status:<\/b
> Fixed
/) {
57 $fix_date = $cur_date;
61 if ($fix_date >= $since) {
64 $fixed = "fixed again";
66 print "Issue $id ($subject) was $fixed\n";
74 open IN
, 'curl -s "' . $url . $status . '" |';
76 if (/<td class="vt id col_0"><a href="detail\?id=(\d+)">\d+<\/a><\
/td>/) {
77 test_issue
($since, $1);
84 get_issues
($since, 'Fixed');