From 8bbdb7e69291d596ced12d540253dcf27800d933 Mon Sep 17 00:00:00 2001 From: "chrisphan@chromium.org" Date: Wed, 11 Sep 2013 00:49:17 +0000 Subject: [PATCH] Enable binary file upload. It seems to just work. R=dpranke@chromium.org BUG=23608 Review URL: https://chromiumcodereview.appspot.com/23766025 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@222431 0039d316-1c4b-4281-b951-d872f2087c98 --- rietveld.py | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/rietveld.py b/rietveld.py index fe8051dd2d..e412a28046 100644 --- a/rietveld.py +++ b/rietveld.py @@ -149,16 +149,11 @@ class Rietveld(object): filename, 'Binary file is empty. Maybe the file wasn\'t uploaded in the ' 'first place?') - raise patch.UnsupportedPatchFormat( + out.append(patch.FilePatchBinary( filename, - 'Binary file support is temporarilly disabled due to a bug. ' - 'Please commit blindly the binary files first then commit the ' - 'source change as a separate CL. Sorry for the annoyance.') - #out.append(patch.FilePatchBinary( - # filename, - # content, - # svn_props, - # is_new=(status[0] == 'A'))) + content, + svn_props, + is_new=(status[0] == 'A'))) continue try: