Insert the "entry" element before all other "entry" elements and remove the elements from the feed file if it reaches --max-items.
Insert the "entry" element before all other "entry" elements and remove
the elements from the feed file if it reaches --max-items.

Patch by: Bhuvaneswaran Arumugam <bhuvan@collab.net>

* 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.


git-svn-id: f8a4e5e023278da1e04e203c7fe051e3c4285d88@860895 13f79535-47bb-0310-9956-ffa450edef68

wbond/subversion,wbond/subversion,wbond/subversion,wbond/subversion,YueLinHo/Subversion,YueLinHo/Subversion,wbond/subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,wbond/subversion,YueLinHo/Subversion,YueLinHo/Subversion,wbond/subversion