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-buildbot/buildbot/slave/commands.py	2007-08-17 17:04:03.000000000 -0700
+++ new-buildbot/buildbot/slave/commands.py	2007-08-17 17:04:03.000000000 -0700
@@ -2254,6 +2254,12 @@
         d.addCallback(lambda _: self._doP4Sync(force=True))
         return d
 
+    def parseGotRevision(self):
+        rv = None
+        if self.revision:
+            rv = str(self.revision)
+        return rv
+
 registerSlaveCommand("p4", P4, command_version)
 
 
@@ -2309,4 +2315,10 @@
     def doVCFull(self):
         return self._doVC(force=True)
 
+    def parseGotRevision(self):
+        rv = None
+        if self.revision:
+            rv = str(self.revision)
+        return rv
+
 registerSlaveCommand("p4sync", P4Sync, command_version)
Binary files old-buildbot/docs/.DS_Store and new-buildbot/docs/.DS_Store differ


