Commit 657aaf25 authored by maruel@chromium.org's avatar maruel@chromium.org

When the svn diff output (on Windows) is sent as a single POST and

some of the files have attribute changes, the server responds with a
list of files where the files with attribute changes have backslashes
(as they do in the svn diff output).  Fix this in the client.

A server-side fix might also be nice; where does the server-side code live?

BUG=none
TEST=none

Patch contributed by Joi.

Review URL: http://codereview.chromium.org/112050

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@16688 0039d316-1c4b-4281-b951-d872f2087c98
parent 053ba90e
......@@ -1346,6 +1346,12 @@ def RealMain(argv, data=None):
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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment