Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Unified Diff: rietveld.py

Issue 23766025: Enable binary file upload. (Closed) Base URL: http://src.chromium.org/svn/trunk/tools/depot_tools/
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: rietveld.py
===================================================================
--- rietveld.py (revision 218333)
+++ rietveld.py (working copy)
@@ -149,16 +149,11 @@
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:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698