| OLD | NEW |
| 1 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 """Module for chromium-os-specific git source that dumps revisions.""" | 5 """Module for chromium-os-specific git source that dumps revisions.""" |
| 6 | 6 |
| 7 import copy | 7 import copy |
| 8 | 8 |
| 9 from buildbot.steps import source | 9 from buildbot.steps import source |
| 10 from buildbot.process import buildstep | 10 from buildbot.process import buildstep |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 revision_list = revision_list.strip() | 38 revision_list = revision_list.strip() |
| 39 return revision_list | 39 return revision_list |
| 40 | 40 |
| 41 def startVC(self, branch, revision, patch): | 41 def startVC(self, branch, revision, patch): |
| 42 """Drops a source stamp for other steps""" | 42 """Drops a source stamp for other steps""" |
| 43 args = copy.copy(self.args) | 43 args = copy.copy(self.args) |
| 44 args['command'] = 'echo "%s" > %s' % (revision, PFQ_REVISION_FILE) | 44 args['command'] = 'echo "%s" > %s' % (revision, PFQ_REVISION_FILE) |
| 45 # Shell is defined by buildbot.slave.SlaveShellCommand. | 45 # Shell is defined by buildbot.slave.SlaveShellCommand. |
| 46 cmd = buildstep.LoggedRemoteCommand("shell", args) | 46 cmd = buildstep.LoggedRemoteCommand("shell", args) |
| 47 self.startCommand(cmd, []) | 47 self.startCommand(cmd, []) |
| OLD | NEW |