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

Re: [PATCH] Remove excess elements from Atom 1.0 feeds

From: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: 2006-07-21 20:48:38 CEST

On 7/21/06, Bhuvaneswaran Arumugam <bhuvan@collab.net> wrote:
> Hello,
>
> Please find attached the patch.
>
> [[
> Patch by: Bhuvaneswaran Arumugam <bhuvan@collab.net>
>
> Insert the "entry" element before all other "entry" elements and remove
> the elements from the feed file if it reaches --max-items.
>
> * contrib/hook-scripts/svn2feed.py
> (Svn2Atom.add_revision_item): Locate the "author" element (last
> non-entry element) and insert the new element after it's next sibling.
>
> Calculate the total "entry" elements and remove the last child if the
> total is greater than the --max-items.
> ]]
>
> Design: Locate the "author" element (last non-entry element) and insert
> the "entry" element before its next sibling. I'm unsure if it is the
> efficient way, but feel free to change if you find a better way.

Applied in r20821, thanks!

-garrett

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jul 21 20:49:36 2006

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.