2022-10-03 19:11:24 +02:00
The [[RecentChanges]] page is broken (doesn't show any history at all) when used with an empty svnpath in the ikiwiki.setup file.
2007-04-16 15:28:45 +02:00
Say you have the following configuration:
rcs => "svn",
svnrepo => "ssh+svn://foo.bar.com/wiki",
svnpath => "",
2022-10-03 19:11:24 +02:00
In the above, $svnpath need to be either empty or "/" - both trigger the 'next unless' check in IkiWiki/Rcs/svn.pm:rcs_recentchanges() as shown in the patch below, thus causing all files to be ignored for [[RecentChanges]].
2007-04-16 15:28:45 +02:00
I can not see why this check is needed in the first place, so here's a patch for removing it :)
diff -upr ikiwiki-1.49.orig/IkiWiki/Rcs/svn.pm ikiwiki-1.49/IkiWiki/Rcs/svn.pm
--- ikiwiki-1.49.orig/IkiWiki/Rcs/svn.pm Mon Apr 16 15:15:09 2007
+++ ikiwiki-1.49/IkiWiki/Rcs/svn.pm Mon Apr 16 15:15:47 2007
2008-12-17 21:22:16 +01:00
@@ -176,7 +176,6 @@ sub rcs_recentchanges ($) {
2007-04-16 15:28:45 +02:00
}
foreach (keys %{$logentry->{paths}}) {
- next unless /^\/\Q$config{svnpath}\E\/([^ ]+)(?:$|\s)/;
my $file=$1;
my $diffurl=$config{diffurl};
$diffurl=~s/\[\[file\]\]/$file/g;
2007-04-16 21:07:52 +02:00
> It's necessary for wikis, such as this one, that keep other things in the
> same svn repository. Bug [[fixed|done]]. --[[Joey]]