Skip to content

Commit

Permalink
ChangeSourceData: Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Jared Grubb committed May 5, 2013
1 parent 8bab603 commit bb98d16
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 17 deletions.
3 changes: 1 addition & 2 deletions master/buildbot/changes/bonsaipoller.py
Expand Up @@ -202,8 +202,7 @@ def _getRevision(self):


class BonsaiPoller(base.PollingChangeSource):
compare_attrs = base.PollingChangeSource.compare_attrs + \
("bonsaiURL", "pollInterval", "tree",
compare_attrs = ("bonsaiURL", "pollInterval", "tree",
"module", "branch", "cvsroot")

def __init__(self, bonsaiURL, module, branch, tree="default",
Expand Down
3 changes: 1 addition & 2 deletions master/buildbot/changes/gerritchangesource.py
Expand Up @@ -26,8 +26,7 @@ class GerritChangeSource(base.ChangeSource):
"""This source will maintain a connection to gerrit ssh server
that will provide us gerrit events in json format."""

compare_attrs = base.ChangeSource.compare_attrs + \
("gerritserver", "gerritport")
compare_attrs = ("gerritserver", "gerritport")

STREAM_GOOD_CONNECTION_TIME = 120
"(seconds) connections longer than this are considered good, and reset the backoff timer"
Expand Down
3 changes: 1 addition & 2 deletions master/buildbot/changes/gitpoller.py
Expand Up @@ -27,8 +27,7 @@ class GitPoller(base.PollingChangeSource, StateMixin):
"""This source will poll a remote git repo for changes and submit
them to the change master."""

compare_attrs = base.PollingChangeSource.compare_attrs + \
("repourl", "branches", "workdir",
compare_attrs = ("repourl", "branches", "workdir",
"pollInterval", "gitbin", "usetimestamps",
"category", "project")

Expand Down
3 changes: 1 addition & 2 deletions master/buildbot/changes/hgpoller.py
Expand Up @@ -26,8 +26,7 @@ class HgPoller(base.PollingChangeSource):
"""This source will poll a remote hg repo for changes and submit
them to the change master."""

compare_attrs = base.PollingChangeSource.compare_attrs + \
("repourl", "branch", "workdir",
compare_attrs = ("repourl", "branch", "workdir",
"pollInterval", "hgpoller", "usetimestamps",
"category", "project")

Expand Down
3 changes: 1 addition & 2 deletions master/buildbot/changes/p4poller.py
Expand Up @@ -45,8 +45,7 @@ class P4Source(base.PollingChangeSource, util.ComparableMixin):
"""This source will poll a perforce repository for changes and submit
them to the change master."""

compare_attrs = base.PollingChangeSource.compare_attrs + \
("p4port", "p4user", "p4passwd", "p4base",
compare_attrs = ("p4port", "p4user", "p4passwd", "p4base",
"p4bin", "pollInterval")

env_vars = ["P4CLIENT", "P4PORT", "P4PASSWD", "P4USER",
Expand Down
3 changes: 1 addition & 2 deletions master/buildbot/changes/pb.py
Expand Up @@ -98,8 +98,7 @@ def perspective_addChange(self, changedict):
return d

class PBChangeSource(config.ReconfigurableServiceMixin, base.ChangeSource):
compare_attrs = base.ChangeSource.compare_attrs + \
("user", "passwd", "port", "prefix", "port")
compare_attrs = ("user", "passwd", "port", "prefix", "port")

def __init__(self, user="change", passwd="changepw", port=None,
prefix=None, name=None):
Expand Down
3 changes: 1 addition & 2 deletions master/buildbot/changes/svnpoller.py
Expand Up @@ -68,8 +68,7 @@ class SVNPoller(base.PollingChangeSource, util.ComparableMixin):
master.
"""

compare_attrs = base.PollingChangeSource.compare_attrs + \
("svnurl", "split_file",
compare_attrs = ("svnurl", "split_file",
"svnuser", "svnpasswd", "project",
"pollInterval", "histmax",
"svnbin", "category", "cachepath")
Expand Down
1 change: 0 additions & 1 deletion master/buildbot/db/changesources.py
Expand Up @@ -14,7 +14,6 @@
# Copyright Buildbot Team Members

import sqlalchemy as sa
import sqlalchemy.exc
from twisted.internet import defer
from buildbot.db import base

Expand Down
3 changes: 1 addition & 2 deletions master/buildbot/db/model.py
Expand Up @@ -199,8 +199,7 @@ class Model(base.DBConnectorComponent):
# linked to a master that is inactive can be unlinked by any master. This
# is a separate table so that we can "claim" changesources on a master by
# inserting; this has better support in database servers for ensuring that
# exactly one claim succeeds. The ID column is present for external users;
# see bug #1053.
# exactly one claim succeeds.
changesource_masters = sa.Table('changesource_masters', metadata,
sa.Column('changesourceid', sa.Integer, sa.ForeignKey('changesources.id'),
nullable=False, primary_key=True),
Expand Down

0 comments on commit bb98d16

Please sign in to comment.