Revision: 19104
http://sourceforge.net/p/edk2/code/19104
Author: jljusten
Date: 2015-12-03 08:18:00 +0000 (Thu, 03 Dec 2015)
Log Message:
-----------
BaseTools PatchCheck.py: Support binary diff
This allows a patch with binary data that is generated with --binary
to be parsed by the PatchCheck.py script.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Liming Gao <[email protected]>
Modified Paths:
--------------
trunk/edk2/BaseTools/Scripts/PatchCheck.py
Modified: trunk/edk2/BaseTools/Scripts/PatchCheck.py
===================================================================
--- trunk/edk2/BaseTools/Scripts/PatchCheck.py 2015-12-03 07:59:57 UTC (rev
19103)
+++ trunk/edk2/BaseTools/Scripts/PatchCheck.py 2015-12-03 08:18:00 UTC (rev
19104)
@@ -285,6 +285,10 @@
self.set_filename(line[6:].rstrip())
if line.startswith('@@ '):
self.state = PATCH
+ self.binary = False
+ elif line.startswith('GIT binary patch'):
+ self.state = PATCH
+ self.binary = True
else:
ok = False
for pfx in self.pre_patch_prefixes:
@@ -294,6 +298,8 @@
self.format_error("didn't find diff hunk marker (@@)")
self.line_num += 1
elif self.state == PATCH:
+ if self.binary:
+ pass
if line.startswith('-'):
pass
elif line.startswith('+'):
------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits