speeds up recentchanges a lot for wikis with more history.
eval q{use Date::Parse};
eval q{use Time::Duration};
eval q{use XML::Simple};
-
+
+ # --limit is only supported on Subversion 1.2.0+
+ my $svn_version=`svn --version -q`;
+ my $svn_limit='';
+ $svn_limit="--limit $num"
+ if $svn_version =~ /\d\.(\d)\.\d/ && $1 >= 2;
+
my $svn_url=svn_info("URL", $config{srcdir});
- my $xml = XMLin(scalar `svn --xml -v log '$svn_url'`,
+ my $xml = XMLin(scalar `svn $svn_limit --xml -v log '$svn_url'`,
ForceArray => [ 'logentry', 'path' ],
GroupTags => { paths => 'path' },
KeyAttr => { path => 'content' },
ikiwiki (1.9) UNRELEASED; urgency=low
* Improve display of parentlinks and page title of toplevel index page.
+ * Patch from Faidon to use svn --limit when possible for recentchanges,
+ speeds up recentchanges a lot for wikis with more history.
- -- Joey Hess <joeyh@debian.org> Tue, 4 Jul 2006 15:41:16 -0400
+ -- Joey Hess <joeyh@debian.org> Wed, 5 Jul 2006 13:33:59 -0400
ikiwiki (1.8) unstable; urgency=low
* [[Tags]] _(status: partial)_
* Should have fully working [[todo/utf8]] support. _(status: fair)_
* [[Optimised_rendering|todo/optimisations]] if possible. Deal with other
- scalability issues. _(status: 45%-60% speedup since 1.0)_
+ scalability issues. _(status: 45%-60%+ speedup since 1.0)_
* Improved [[todo/html]] stylesheets and templates.
* Improved scalable [[logo]]. _(status: done)_
* Support for at least one RCS aside from svn. Once it supports two, it should