Major refactoring of svn2rss.py to support multiple formats (though we only support one just yet).  Introduces a mandatory -F [--format] switch.
Major refactoring of svn2rss.py to support multiple formats (though we only
support one just yet).  Introduces a mandatory -F [--format] switch.

* contrib/hook-scripts/svn2rss.py
  (usage message): Document new option.
  (global scope): Tidy up the Python version check, and remove the Py2RSSGen
    import.
  (Svn2Feed): New base class for feed generators.
  (Svn2RSS): Derive from Svn2Feed.
  (Svn2RSS.__init__): Import Py2RSSGen only on class instantiation.
  (Svn2RSS.get_default_file_extension): New static method.
  (Svn2RSS._make_rss_item): Move bulk of code out to Svn2Feed._get_item_dict(),
    and call that.
  (main): Implement new --format option.


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

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