Skip to content

Commit

Permalink
Set the 'revision' property more often
Browse files Browse the repository at this point in the history
If the requested SourceStamp was HEAD, and we calculate a revision from
the set of Changes passed in, then set the 'revision' property
accordingly.  Fixes buildbot#101.
  • Loading branch information
Dustin J. Mitchell committed May 27, 2010
1 parent a772114 commit 5999e70
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions buildbot/steps/source.py
Expand Up @@ -206,6 +206,10 @@ def start(self):
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
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)
Expand Down

0 comments on commit 5999e70

Please sign in to comment.