Skip to content

Commit

Permalink
Merge branch 'add_git_googleatom' of git://github.com/dzhurley/buildbot
Browse files Browse the repository at this point in the history
* 'add_git_googleatom' of git://github.com/dzhurley/buildbot:
  added support for git src from googecode_atom script
  • Loading branch information
djmitche committed Aug 24, 2011
2 parents 7db9dc0 + 6f357c8 commit 0398298
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion master/contrib/googlecode_atom.py
Expand Up @@ -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
"""

Expand Down Expand Up @@ -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")
Expand Down
4 changes: 3 additions & 1 deletion master/docs/manual/cfg-changesources.rst
Expand Up @@ -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
Expand Down Expand Up @@ -1328,7 +1330,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``
Expand Down

0 comments on commit 0398298

Please sign in to comment.