Page History

Turn Off History

Colored Diffs: (from Daniel Lundin <daniel@codefactory.se>)

Since CVSTrac now has support for using an external 'diff' program (see checkin [229]), I wrote a small filter program to accomplish this, similar to the output of cvsview.

The output is marked up using CSS styles, so customizing the appearance should be simple enough for anyone who cares enough.

Example output

A sample output is viewable at http://afs.codefactory.se/user/daniel/diff2html/sample.html

Where to get it The program is available at:


Setting up colored diffs

In the setup section of CVSTrac, under 'Diff Programs', add something like:

    rcsdiff -q -r%V1 -r%V2 -u '%F' | diff2html

That should work right away.

Using the included stylesheet

Also under setup, under 'Heders & Footers', make sure to link to the stylesheet as any regular CSS stylesheet.

A sample (probably overly simplified) header:

    <html>
    <head>
    <link rel="stylesheet" type="text/css" ref="http://afs.codefactory.se/user/daniel/diff2html.css">
    </head>


Caveat: gawk 3.0.4 chokes with the following error message: gawk: diff2html:93: fatal: match() cannot have 3 arguments

Anyone writing a Perl version? Sure, it's heavier, but...