Skip to content

Commit

Permalink
added support for git src from googecode_atom script
Browse files Browse the repository at this point in the history
  • Loading branch information
dzhurley committed Aug 21, 2011
1 parent 4a9c23d commit 6f357c8
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 @@ -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``
Expand Down

0 comments on commit 6f357c8

Please sign in to comment.