Skip to content

Commit

Permalink
Minor console fixes (index error in code with sort-by-time + show cat…
Browse files Browse the repository at this point in the history
…egory names in html properly)
  • Loading branch information
marcus-sonestedt committed Jan 3, 2010
1 parent 54aaca1 commit da79b7d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 4 additions & 2 deletions buildbot/status/web/console.py
Expand Up @@ -301,8 +301,10 @@ def getBuildsForRevision(self, request, builder, builderName, lastRevision,
builds.append(devBuild)

# Now break if we have enough builds.
if self.comparator.isRevisionEarlier(
devBuild, builder.getBuild(-1).getChanges()[-1]):
c = builder.getBuild(-1).getChanges()
#XXX: c is sometimes an empty tuple, so c[-1] fails?!?!
if c and self.comparator.isRevisionEarlier(
devBuild, c[-1]):
break

build = build.getPreviousBuild()
Expand Down
3 changes: 1 addition & 2 deletions buildbot/status/web/templates/console.html
Expand Up @@ -82,9 +82,8 @@ <h1>Console View</h1>
<table width=95% class="Grid" border="0" cellspacing="0">
<tr>
<td width="33%" align="left" class="left_align">
<a href="{{ project_url }}">{{ project_name }}</a>
{% if categories|length > 1 %}
<br><b>Categories:</b> {{ categories }}
<br><b>Categories:</b> {% for c in categories %}{{ c.name }} {% endfor %}
{% endif %}
{% if branch != ANYBRANCH %}
<br><b>Branch:</b> {{ branch }}
Expand Down

0 comments on commit da79b7d

Please sign in to comment.