| Index: scm.py
|
| diff --git a/scm.py b/scm.py
|
| index 58f26c6a9855f4b85ea8132d7f535d1bb7a6a2a7..757935d7507b12d9ee2225873d0d94f6a5c7aa60 100644
|
| --- a/scm.py
|
| +++ b/scm.py
|
| @@ -416,11 +416,7 @@ class SVN(object):
|
|
|
| # We know the diff will be incorrectly formatted. Fix it.
|
| if SVN.IsMoved(filename):
|
| - # The file is "new" in the patch sense. Generate a homebrew diff.
|
| - # We can't use ReadFile() since it's not using binary mode.
|
| - file_handle = open(filename, 'rb')
|
| - file_content = file_handle.read()
|
| - file_handle.close()
|
| + file_content = gclient_utils.FileRead(filename, 'rb')
|
| # Prepend '+' to every lines.
|
| file_content = ['+' + i for i in file_content.splitlines(True)]
|
| nb_lines = len(file_content)
|
|
|