Commit 5ba3a44f authored by maruel@chromium.org's avatar maruel@chromium.org

Fix svn diff mungling.

It was adding a space in front of every line.

BUG=none
TEST=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@26973 0039d316-1c4b-4281-b951-d872f2087c98
parent 770ff9ee
......@@ -167,8 +167,8 @@ class SVN(SCM):
file_handle = open(file, 'rb')
file_content = file_handle.read()
file_handle.close()
# Prepend '+ ' to every lines.
file_content = ['+ ' + i for i in file_content.splitlines(True)]
# Prepend '+' to every lines.
file_content = ['+' + i for i in file_content.splitlines(True)]
nb_lines = len(file_content)
# We need to use / since patch on unix will fail otherwise.
file = file.replace('\\', '/')
......
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