Skip to content

Commit

Permalink
Merge branch 'alwaysUseLatest-honor-branch' of git://github.com/tompr…
Browse files Browse the repository at this point in the history
…ince/buildbot
  • Loading branch information
djmitche committed Jan 22, 2012
2 parents c69b40c + c303d10 commit 130c32b
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 25 deletions.
Empty file added lorentz
Empty file.
2 changes: 1 addition & 1 deletion master/buildbot/status/mail.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def setServiceParent(self, parent):
def startService(self):
if self.buildSetSummary:
self.buildSetSubscription = \
self.parent.subscribeToBuildsetCompletions(self.buildsetFinished)
self.master.subscribeToBuildsetCompletions(self.buildsetFinished)

base.StatusReceiverMultiService.startService(self)

Expand Down
49 changes: 25 additions & 24 deletions master/buildbot/steps/source/oldsource.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,31 +258,32 @@ def start(self):
# Allow workdir to be WithProperties
self.args['workdir'] = self.workdir

# what source stamp would this build like to use?
id = self.getRepository()
s = self.build.getSourceStamp(id)

# if branch is None, then use the Step's "default" branch
branch = s.branch or self.branch
# if revision is None, use the latest sources (-rHEAD)
revision = s.revision
if not revision and not self.alwaysUseLatest:
revision = self.computeSourceRevision(s.changes)
# the revision property is currently None, so set it to something
# more interesting
if revision is not None:
self.setProperty('revision', str(revision), "Source")

# if patch is None, then do not patch the tree after checkout

# 'patch' is None or a tuple of (patchlevel, diff, root)
# root is optional.
patch = s.patch
if patch:
self.addCompleteLog("patch", patch[1])

if self.alwaysUseLatest:
if not self.alwaysUseLatest:
# what source stamp would this build like to use?
id = self.getRepository()
s = self.build.getSourceStamp(id)

# if branch is None, then use the Step's "default" branch
branch = s.branch or self.branch
# if revision is None, use the latest sources (-rHEAD)
revision = s.revision
if not revision:
revision = self.computeSourceRevision(s.changes)
# the revision property is currently None, so set it to something
# more interesting
if revision is not None:
self.setProperty('revision', str(revision), "Source")

# if patch is None, then do not patch the tree after checkout

# 'patch' is None or a tuple of (patchlevel, diff, root)
# root is optional.
patch = s.patch
if patch:
self.addCompleteLog("patch", patch[1])
else:
revision = None
branch = self.branch

self.args['logEnviron'] = self.logEnviron
self.args['env'] = self.env
Expand Down

0 comments on commit 130c32b

Please sign in to comment.