#!/usr/bin/perl use strict; use lib qw[/home/httpd/html/www/markup/html/whatpm /home/wakaba/work/manakai2/lib ../lib ]; my $log_uri; use Getopt::Long; GetOptions ( 'log-uri=s' => \$log_uri, ); die unless defined $log_uri; my $diff_command = 'diff'; my $diff_options = ['--rcs', '-a']; require Message::DOM::DOMImplementation; my $dom = 'Message::DOM::DOMImplementation'; my $ent = get_remote_entity ($log_uri); unless (defined $ent->{s}) { die "<$log_uri>: $ent->{error_status_text}"; } require RCSFormat; my $rcs = new RCSFormat; $rcs->{admin}->{strict} = 1; $rcs->{admin}->{comment} = '# '; $rcs->{admin}->{expand} = 'b'; my $text = {}; my $text_from = {}; #if ($ent->{s} =~ m!CVS log for ([^<>]+)!gc) { # $info->{file_path} = htunescape ($1); #} my $branches = {}; my $branch_rev = {}; if ($ent->{s} =~ m[View only Branch]gc) { while ($ent->{s} =~ m[