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

[PATCH] svn2rss.py: --revision takes a range (m:n)

From: Bhuvaneswaran Arumugam <bhuvan_at_collab.net>
Date: 2006-06-18 07:56:45 CEST

Hello,

I have attached a patch for svn2rss.py python script. The patch contains
following fixes and they are related to each other:

  1) --revision takes a range (m:n), like the 'svn' client does
  2) if the revision is not set, it is set to the youngest one

[[[
--revision takes a range (m:n), like the 'svn' client does and default
value is set to the youngest one

* svn2rss.py
  (import): import re, string
  (__init__): add 'try' block and handle ValueError for revision. here,
  if the revision is not set, set it to the youngest one. handle one
  and range of revisions. finally, for each revision, add the rss feed
  to the file
  (SVN2RSS.__init__): pop the rss items from the feed, while length of
  rss feed >= max items
]]]

-- 
Regards,
Bhuvaneswaran

Received on Sun Jun 18 07:57:33 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.