Ticket #127: p4revfix.diff

File p4revfix.diff, 1.1 KB (added by dsallings, 2 years ago)

make got_revision work for perforce builds

  • buildbot/slave/commands.py

    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  
    22542254        d.addCallback(lambda _: self._doP4Sync(force=True)) 
    22552255        return d 
    22562256 
     2257    def parseGotRevision(self): 
     2258        rv = None 
     2259        if self.revision: 
     2260            rv = str(self.revision) 
     2261        return rv 
     2262 
    22572263registerSlaveCommand("p4", P4, command_version) 
    22582264 
    22592265 
     
    23092315    def doVCFull(self): 
    23102316        return self._doVC(force=True) 
    23112317 
     2318    def parseGotRevision(self): 
     2319        rv = None 
     2320        if self.revision: 
     2321            rv = str(self.revision) 
     2322        return rv 
     2323 
    23122324registerSlaveCommand("p4sync", P4Sync, command_version)