buildbot/buildbot — pull request #593 by mx-mad (2012-12-19 14:26:12+00:00)
Title: Fix perforce patch generation

The initial command to generate patch "p4 diff -du" doesn't work as the produced output is in this format:

--- //depot/v3.1.build/CMakeLists.txt 2012-11-30 17:44:14.000000000 0100
+++ d:\v3.1.build\CMakeLists.txt 2012-11-30 17:44:14.000000000 0100
@@ -170,3 +170,5 @@

+
+"Test patch"

where as the "readPatch" for perforce client is waiting for output in this format:

>p4 diff

==== //depot/v3.1.build/CMakeLists.txt#25 - d:\v3.1.build\CMakeLists.txt ====
172a173,174
>
> "Test patch"