Skip to content

Commit

Permalink
Merge branch 'master' into nine
Browse files Browse the repository at this point in the history
Conflicts:
	master/buildbot/status/web/pngstatus.py
	master/buildbot/test/unit/test_status_web_statuspng.py
	master/docs/manual/cfg-statustargets.rst
  • Loading branch information
djmitche committed Mar 11, 2014
2 parents 913b799 + fe57891 commit 18e1fe0
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
16 changes: 15 additions & 1 deletion master/buildbot/status/builder.py
Expand Up @@ -328,7 +328,21 @@ def setCategory(self, category):
def getCategory(self):
return self.category

def getBuild(self, number):
def getBuildByRevision(self, rev):
number = self.nextBuildNumber - 1
while number > 0:
build = self.getBuildByNumber(number)
got_revision = build.getAllGotRevisions().get("")

if rev == got_revision:
return build
number -= 1
return None

def getBuild(self, number, revision=None):
if revision is not None:
return self.getBuildByRevision(revision)

if number < 0:
number = self.nextBuildNumber + number
if number < 0 or number >= self.nextBuildNumber:
Expand Down
File renamed without changes
4 changes: 2 additions & 2 deletions master/docs/conf.py
Expand Up @@ -132,7 +132,7 @@

# The name of an image file (relative to this directory) to place at the top
# of the sidebar.
html_logo = 'header-text-transparent.png'
html_logo = os.path.join('_images', 'header-text-transparent.png')

# The name of an image file (within the static path) to use as favicon of the
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
Expand Down Expand Up @@ -206,7 +206,7 @@

# The name of an image file (relative to this directory) to place at the top of
# the title page.
latex_logo = 'header-text-transparent.png'
latex_logo = os.path.join('_images', 'header-text-transparent.png')

# For "manual" documents, if this is true, then toplevel headings are parts,
# not chapters.
Expand Down

0 comments on commit 18e1fe0

Please sign in to comment.