Skip to content

Commit

Permalink
populate the sourcestamp change list
Browse files Browse the repository at this point in the history
Some build step are needing change properties to be mixed in build properties
  • Loading branch information
Pierre Tardy committed Jan 23, 2015
1 parent 4221031 commit 55446d2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions master/buildbot/process/buildrequest.py
Expand Up @@ -118,6 +118,18 @@ def asDict(self):
return result


class TempChange(object):
# temporary fake change; attributes are added below

def __init__(self, d):
for k, v in d.items():
setattr(self, k, v)
self.properties = properties.Properties()
for k, v in d['properties'].items():
self.properties.setProperty(k, v[0], v[1])
self.who = d['author']


class BuildRequest(object):

"""
Expand Down Expand Up @@ -218,6 +230,9 @@ def _make_br(cls, brid, brdict, master):
ss.patch = None
ss.patch_info = (None, None)
ss.changes = []
change = yield master.db.changes.getChangeFromSSid(ss.ssid)
if change:
ss.changes.append(TempChange(change))
# XXX: sourcestamps don't have changes anymore; this affects merging!!

defer.returnValue(buildrequest)
Expand Down

0 comments on commit 55446d2

Please sign in to comment.