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

Unified Diff: trychange.py

Issue 223009: Fix svn diff mungling. (Closed)
Patch Set: Created 11 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: trychange.py
diff --git a/trychange.py b/trychange.py
index f6a086fbcace11500a1d1a496cd1196ec609354f..c99388d8b917dfd935970c2bef3afec8cf6546ce 100755
--- a/trychange.py
+++ b/trychange.py
@@ -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('\\', '/')
« 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