[Buildbot-commits] buildbot/buildbot/slave commands.py,1.42,1.43

Brian Warner warner at users.sourceforge.net
Tue Apr 11 06:48:29 UTC 2006


Update of /cvsroot/buildbot/buildbot/buildbot/slave
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13648/buildbot/slave

Modified Files:
	commands.py 
Log Message:
Revision: arch at buildbot.sf.net--2004/buildbot--dev--0--patch-492
Creator:  Brian Warner <warner at lothar.com>

fix a python2.2-compatibility problem in Mercurial support


Index: commands.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/slave/commands.py,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -d -r1.42 -r1.43
--- commands.py	11 Apr 2006 06:12:59 -0000	1.42
+++ commands.py	11 Apr 2006 06:48:26 -0000	1.43
@@ -1262,7 +1262,7 @@
 
     def _handleEmptyUpdate(self, res):
         if type(res) is int and res == 1:
-            if "no changes found" in self.command.stdout:
+            if self.command.stdout.find("no changes found") != -1:
                 # 'hg pull', when it doesn't have anything to do, exits with
                 # rc=1, and there appears to be no way to shut this off. It
                 # emits a distinctive message to stdout, though. So catch





More information about the Commits mailing list