Next: , Previous: Change Hooks (HTTP Notifications), Up: Change Sources


4.7.12 GoogleCodeAtomPoller

The GoogleCodeAtomPoller periodically polls a Google Code Project's commit feed for changes. Works on both SVN and Mercurial repositories. Branches are not understood (yet). It accepts the following arguments:

feedurl
The commit Atom feed URL of the GoogleCode repository (MANDATORY)
pollinterval
Polling frequency for the feed (in seconds). Default is 1 hour (OPTIONAL)

Example

To poll the Ostinato project's commit feed every 3 hours, use -

     from contrib.googlecode_atom import GoogleCodeAtomPoller
     poller = GoogleCodeAtomPoller(
         feedurl="http://code.google.com/feeds/p/ostinato/hgchanges/basic",
         pollinterval=10800)
     c['change_source'] = [ poller ]