#!/bin/zsh cat <

Path:

[root] $(tmp="$url" until [ -z "$tmp" -o "$tmp" = '//' -o "$tmp" = './' ]; do echo "/$(basename "$tmp") " tmp="$(dirname "$tmp")/" done |tac)

Revisions:

$(for i in {1.."$lastrev"}; do echo "$i" done) :g; s:^r([0-9]+) \| ([a-zA-Z0-9]+) \| ([0-9: -]+) .+$:

Revision \1 by \2
at \3

:g;p}')

$(basename "$url"), Revision "$rev":

$(if (egrep -q '^(.*/|)$' <<<"$url"); then #are we showing a directory svn ls -r "$rev" "${baseuri}/${url}" |sed -r "s:^.*$:&
:g" echo '
' else #or are we showing a file lang=$(source-highlight --lang-list |cut -d\ -f1 |grep -x "$(sed 's:.*\.::g' <<<"$url")" || echo sh) grep -q '\.' <<<"$url" || lang=txt svn cat -r "$rev" "${baseuri}/${url}" |source-highlight -s "$lang" fi)
SVNEND