[Buildbot-commits] buildbot/buildbot/slave commands.py,1.48,1.49

Brian Warner warner at users.sourceforge.net
Sat May 20 22:15:06 UTC 2006


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

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

slave.commands.Darcs: use binary-mode for context file, for windows

	* buildbot/slave/commands.py (Darcs.doVCFull): when writing the
	.darcs-context file, use binary mode. I think this was causing a
	Darcs failure under windows.


Index: commands.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/slave/commands.py,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -d -r1.48 -r1.49
--- commands.py	19 May 2006 07:44:22 -0000	1.48
+++ commands.py	20 May 2006 22:15:04 -0000	1.49
@@ -1082,7 +1082,7 @@
         if self.revision:
             # write the context to a file
             n = os.path.join(self.builder.basedir, ".darcs-context")
-            f = open(n, "w") # TODO: should this be 'wt'?
+            f = open(n, "wb")
             f.write(self.revision)
             f.close()
             # tell Darcs to use that context





More information about the Commits mailing list