recentchanges
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sat, 11 Mar 2006 04:28:08 +0000 (04:28 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sat, 11 Mar 2006 04:28:08 +0000 (04:28 +0000)
ikiwiki

diff --git a/ikiwiki b/ikiwiki
index a89b24bb7ec962724a2411c5ba21522f6e693505..a9f3b8c51ea5a349cd1ca6c3b61d31f1550a0d7e 100755 (executable)
--- a/ikiwiki
+++ b/ikiwiki
@@ -379,9 +379,9 @@ sub rcs_recentchanges ($) {
                my $info=`LANG=C svn info $srcdir`;
                my ($svn_url)=$info=~/^URL: (.*)$/m;
 
-               # FIXME: currently assumes that the wiki is under trunk in
-               # svn.
-               my ($svn_base)=$svn_url=~m!(/trunk/.*)!;
+               # FIXME: currently assumes that the wiki is somewhere
+               # under trunk in svn, doesn't support other layouts.
+               my ($svn_base)=$svn_url=~m!(/trunk(?:/.*)?)$!;
                
                my $div=qr/^--------------------+$/;
                my $infoline=qr/^r(\d+)\s+\|\s+([^\s]+)\s+\|\s+(\d+-\d+-\d+\s+\d+:\d+:\d+\s+[-+]?\d+).*/;