Skip to content

Commit

Permalink
Merge branch 'master' into buildbot-0.8.0
Browse files Browse the repository at this point in the history
* master:
  remove assertions
  remove 'will this work?' comments - refs buildbot#829
  add an 'else' to a template inline conditional
  • Loading branch information
Dustin J. Mitchell committed May 14, 2010
2 parents 6202035 + a675abc commit 050edda
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 16 deletions.
4 changes: 0 additions & 4 deletions buildbot/db/connector.py
Expand Up @@ -362,10 +362,6 @@ def changeEventGenerator(self, branches=[], categories=[], committers=[], minTim
q += " AND ".join(pieces)
q += " ORDER BY changeid DESC"
rows = self.runQueryNow(q, tuple(args))
# will this work? do I need to finish fetching everything by using
# list(rows)? or can I use it as an iterator and fetch things as
# needed? will the queries in getChangeNumberedNow() interfere with
# that iterator?
for (changeid,) in rows:
yield self.getChangeNumberedNow(changeid)

Expand Down
2 changes: 0 additions & 2 deletions buildbot/slave/commands/base.py
Expand Up @@ -495,8 +495,6 @@ def _startCommand(self):
self.process = None
self.startTime = util.now(self._reactor)

for arg in argv: assert isinstance(arg, str), (type(arg), arg)

p = reactor.spawnProcess(self.pp, argv[0], argv,
self.environ,
self.workdir,
Expand Down
9 changes: 0 additions & 9 deletions buildbot/sourcestamp.py
Expand Up @@ -41,20 +41,15 @@ class SourceStamp(util.ComparableMixin, styles.Versioned):

def __init__(self, branch=None, revision=None, patch=None,
changes=None, project='', repository=''):
if branch is not None:
assert isinstance(branch, str), type(branch)
if revision is not None:
if isinstance(revision, int):
revision = str(revision)
assert isinstance(revision, str), type(revision)
if patch is not None:
patch_level = patch[0]
patch_level = int(patch_level)
patch_diff = patch[1]
assert isinstance(patch_diff, str), type(patch_diff)
if len(patch) > 2:
patch_subdir = patch[2]
assert isinstance(patch_subdir, str)
self.branch = branch
self.revision = revision
self.patch = patch
Expand All @@ -64,11 +59,7 @@ def __init__(self, branch=None, revision=None, patch=None,
self.changes = tuple(changes)
# set branch and revision to most recent change
self.branch = changes[-1].branch
if self.branch is not None:
assert isinstance(self.branch, str), type(self.branch)
self.revision = str(changes[-1].revision)
if self.revision is not None:
assert isinstance(self.revision, str), type(self.revision)
if not self.project:
self.project = changes[-1].project
if not self.repository:
Expand Down
2 changes: 1 addition & 1 deletion buildbot/status/web/templates/console.html
Expand Up @@ -156,7 +156,7 @@ <h1>Console View</h1>
<td width="1%">
</td>
{% for c in categories %}
<td class='DevSlave {{ alt_class.next() }} {{ "last" if loop.last }}'>
<td class='DevSlave {{ alt_class.next() }} {{ "last" if loop.last else '' }}'>
<table width="100%">
<tr>
{% for s in slaves[c.name] %}
Expand Down

0 comments on commit 050edda

Please sign in to comment.