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

Unified Diff: upload.py

Issue 112050: When the svn diff output (on Windows) is sent as a single POST and... (Closed) Base URL: http://src.chromium.org/svn/trunk/tools/depot_tools/
Patch Set: Created 11 years, 7 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: upload.py
===================================================================
--- upload.py (revision 16669)
+++ upload.py (working copy)
@@ -1346,6 +1346,12 @@
msg = lines[0]
patchset = lines[1].strip()
patches = [x.split(" ", 1) for x in lines[2:]]
+ for patch_pair in patches:
+ # On Windows if a file has property changes its filename uses '\'
+ # instead of '/'. Perhaps this change should be made (also) on the
+ # server when it is decoding the patch file sent by the client, but
+ # we do it here as well to be safe.
+ patch_pair[1] = patch_pair[1].replace('\\', '/')
else:
msg = response_body
else:
« 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