I knocked this up for home use. It outputs your subversion log a bit nicer than plain text. Maybe it'll be helpul for some of the esteemed monks?

Update
Added use CGI::Carp qw(fatalsToBrowser), as suggested by ghenry.
#!/usr/bin/perl -w # # subvert.pl: display your change log from subversion use strict; use CGI qw(:standard ); use CGI::Carp qw(fatalsToBrowser); # For better error messages (Thanks +, ghenry) my $WORK_DIR='/var/www'; # location of directory that's currently chec +ked out my $start = param('start') || 'BASE'; my $end = param('end') || 'HEAD'; validate(); print header(), start_html({-style=>'/stylesheets/subvert.css',-title=>"SUBVER +t"}), h1("SUBVERt: Subversion Log Viewer"); print h2("Showing Revisions From: $start to $end"); print form(); print showlog(); print form(); print end_html(); # validate start and end params sub validate() { for ($start,$end) { next if ($_ eq "BASE" || $_ eq "HEAD" || $_ eq "PREV" +|| $_ eq "COMMITTED"); $_=~s/[^\d]//gi; } } # builds the submit form sub form() { my $return=""; $return.=start_form({-method=>"post"}); $return.="Search repository from revision: "; $return.=textfield({-name=>"start"},"$start"); $return.=" &nbsp; to revision: "; $return.=textfield({-name=>"end"},"$end"); $return.=" &nbsp; &nbsp; " . submit(-value=>" GO "); $return.=end_form(); return div({-class=>"frm"},$return); } # loop through the log splitting it into entries sub showlog() { my $return=""; my $log = `svn log $WORK_DIR -r $start:$end` ; my @log = split /[-]{10,}/,$log; for (my $i=1;$i<$#log;$i++){ $return.=parse_entry($log[$i]); } return $return; } # parse log entry and give it back as html sub parse_entry() { my @entry = split /\n/,@_[0]; my ($revision,$author,$date,$cmt_length) = split /\|/,$entry[1 +]; my $return=h3("Revision: $revision<br />Checked in by: $author +<br />Checked in on: $date<br />"); $return.=b("Comment: ") . "<pre>"; for (my $i=3;$i<=$#entry;$i++) { $return.="$entry[$i]\n"; } $return.="</pre>\n"; return div({-class=>'entry'},$return); }
And the css...
body { background: white; font: normal 12px arial,sans; } form { margin-bottom:1px; } div.frm { background-color:#ccc; border:1px solid black; margin:5px 10%; padding:2px; text-align:right; } div.entry { background-color:#ccc; border:1px solid black; margin:5px 10%; padding:5px; } pre{ background-color:#fff;} h1{ text-align:center; font: bold 28px arial,sans; } h2{ text-align:center; font: bold 21px arial,sans; } h3 { background-color:#fff; font: bold 16px arial,sans; margin:0 0 0.4em 0; }

In reply to subvert.pl: subversion log viewer by ciderpunx

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.