[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: mod_dav_svn enhancement idea

From: Michael Sinz <Michael.Sinz_at_sinz.org>
Date: 2005-05-08 19:04:42 CEST

John Belmonte wrote:
> Ben Collins-Sussman wrote:
>>On May 7, 2005, at 9:49 PM, Michael Sinz wrote:
>>>BTW - I really wish svn log --limit existed in the 1.1.x - it would
>>>be a life-saver for those larger repositories.
>>Not possible to backport to 1.1.x, because
>> * patch releases are bugfixes only, not for adding new features, and
>> * it involves an API change, which guarantees that it must be in a
>>minor release.
>>Those 'larger repositories' will just have to upgrade to svn 1.2 next
>>week. :-)
> Except that the current implementation of --limit in 1.2 doesn't seem to
> provide any better performance than doing a full log and filtering the
> result (see http://subversion.tigris.org/issues/show_bug.cgi?id=2290).
> This is a shame-- I would really like to use this for interfaces to log
> that are simple and efficient (e.g. dynamically generate the RSS feed of
> changes on a path by sending "svn log --limit 10 --xml TARGET" through
> an appropriate XSLT).

You can look at what Insurrection does for the RSS feeds. It is in the

It is "stupid" as some of the comments state, but it handles getting only
a subset of the log for RSS using a date range. Now, I don't use XSLT
in this case since most RSS readers do not support that, but that is a minor
nit. (I really should use XSLT to be completely correct, but RSS is so
simple that the perl regexp trick worked just fine.)

Yes the limit would be nice in case there are more than 20 (or whatever limit
is needed) entries within that date range.

I also have the date range start at the newest entry in that part of the
repository. This way if no changes over the weekend, you still get the
last n-days of changes rather than missing those 2 days.

You can try the RSS feed here: http://svn.sinz.com:8000/svn/Web/trunk/?Insurrection=rss

Michael Sinz                     Technology and Engineering Director/Consultant
"Starting Startups"                                mailto:michael.sinz@sinz.org
My place on the web                            http://www.sinz.org/Michael.Sinz
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun May 8 19:05:29 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.