From 6f357c8f33d95bee7e0e10e5dcd51e4d9385e360 Mon Sep 17 00:00:00 2001 From: Derek Hurley Date: Sun, 21 Aug 2011 15:45:05 -0700 Subject: [PATCH] added support for git src from googecode_atom script --- master/contrib/googlecode_atom.py | 6 +++++- master/docs/manual/cfg-changesources.rst | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/master/contrib/googlecode_atom.py b/master/contrib/googlecode_atom.py index 5586b9b0824..2a6db53d995 100644 --- a/master/contrib/googlecode_atom.py +++ b/master/contrib/googlecode_atom.py @@ -42,7 +42,8 @@ def googleCodePollerForProject(project, vcs, pollinterval=3600): class GoogleCodeAtomPoller(base.ChangeSource): """This source will poll a GoogleCode Atom feed for changes and - submit them to the change master. Works for both Svn and Hg repos. + submit them to the change master. Works for both Svn, Git, and Hg + repos. TODO: branch processing """ @@ -76,6 +77,9 @@ def __init__(self, feedurl, pollinterval=3600): elif word == 'hgchanges': self.src = 'hg' break + elif word == 'gitchanges': + self.src = 'git' + break def startService(self): log.msg("GoogleCodeAtomPoller starting") diff --git a/master/docs/manual/cfg-changesources.rst b/master/docs/manual/cfg-changesources.rst index 4591afab41d..2d346040fa7 100644 --- a/master/docs/manual/cfg-changesources.rst +++ b/master/docs/manual/cfg-changesources.rst @@ -86,6 +86,8 @@ Git * github change hook (specifically designed for GitHub notifications, but requiring a publicly-accessible WebStatus) * :class:`gitpoller.GitPoller` (polling a remote git repository) + * :file:`contrib/googlecode_atom.py`\'s GoogleCodeAtomPoller (polling the + commit feed for a GoogleCode Git repository) Repo/Git @@ -1337,7 +1339,7 @@ GoogleCodeAtomPoller ~~~~~~~~~~~~~~~~~~~~ The :class:`GoogleCodeAtomPoller` periodically polls a Google Code Project's -commit feed for changes. Works on both SVN and Mercurial repositories. Branches +commit feed for changes. Works on SVN, Git, and Mercurial repositories. Branches are not understood (yet). It accepts the following arguments: ``feedurl``