url="$(echo -e "${url}" |sed 's:\t: :g;s:\r::g;s:\\:\\\\:g' |head -n1)"
rev="$(egrep -o '(^|&)(r=)[0-9]+(&|$)' <<<"${QUERY_STRING}" |tr -d 'r=&')"
-baseuri=$(egrep '^repo=.*$' project.meta |cut -d= -f2-)
+baseuri=$(egrep '^svnRepo=.*$' project.meta |cut -d= -f2-)
lastrev=$(svn info "$baseuri" |egrep '^Revision:' |cut -d\ -f2)
[ -z "$rev" ] && rev="$lastrev"
cat <<SVNEND
</div>
- <div id="RIGHT"></div>
+ <div id="RIGHT">
+ <h1>Changelog:</h1><hr>
+ $(svn log $(egrep -q '^(.*/|)$' <<<"$url" && echo '') "${baseuri}/${url}" |\
+sed -rn '2,${s:^-+$:</div>:g;
+s:^r([0-9]+) \| ([a-zA-Z0-9]+) \| ([0-9: -]+) .+$:<div class="changelog"><h2>Revision \1 by \2<br>at \3</h2>:g;p}')
+ </div>
<div id="MAIN">
<div class='wikitext'><h1>$(basename "$url"), Revision "$rev":</h1>