Fri Aug 17 16:53:36 PDT 2007 Dustin Sallings <dustin@spy.net>
* make got_revision work for perforce builds
This only works in the case where a build was attempted under a specific
revision, but that is the most common use case at least where I am.
diff -rN -u old-buildbot/buildbot/slave/commands.py new-buildbot/buildbot/slave/commands.py
|
old
|
new
|
|
| 2254 | 2254 | d.addCallback(lambda _: self._doP4Sync(force=True)) |
| 2255 | 2255 | return d |
| 2256 | 2256 | |
| | 2257 | def parseGotRevision(self): |
| | 2258 | rv = None |
| | 2259 | if self.revision: |
| | 2260 | rv = str(self.revision) |
| | 2261 | return rv |
| | 2262 | |
| 2257 | 2263 | registerSlaveCommand("p4", P4, command_version) |
| 2258 | 2264 | |
| 2259 | 2265 | |
| … |
… |
|
| 2309 | 2315 | def doVCFull(self): |
| 2310 | 2316 | return self._doVC(force=True) |
| 2311 | 2317 | |
| | 2318 | def parseGotRevision(self): |
| | 2319 | rv = None |
| | 2320 | if self.revision: |
| | 2321 | rv = str(self.revision) |
| | 2322 | return rv |
| | 2323 | |
| 2312 | 2324 | registerSlaveCommand("p4sync", P4Sync, command_version) |