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

Side by Side Diff: webkit/tools/merge/diff3-wrapper.py

Issue 18557: Set the svn eol-style to LF for merge scripts. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | webkit/tools/merge/merge.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
1 #!/bin/env python 1 #!/bin/env python
2 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Wrapper around BeyondCompare or kdiff3 so it can be used as svn's diff3-cmd 6 """Wrapper around BeyondCompare or kdiff3 so it can be used as svn's diff3-cmd
7 tool. 7 tool.
8 8
9 The basic idea here is based heavily off of diffwrap.py at: 9 The basic idea here is based heavily off of diffwrap.py at:
10 http://svnbook.red-bean.com/en/1.5/svn.advanced.externaldifftools.html#svn.advan ced.externaldifftools.diff3.ex-1 10 http://svnbook.red-bean.com/en/1.5/svn.advanced.externaldifftools.html#svn.advan ced.externaldifftools.diff3.ex-1
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 merged_file_contents.replace('\r\n', '\n') 101 merged_file_contents.replace('\r\n', '\n')
102 102
103 # For reasons I don't understand, an extra line break gets added at the end 103 # For reasons I don't understand, an extra line break gets added at the end
104 # of the file. Strip it. 104 # of the file. Strip it.
105 merged_file_contents = merged_file_contents[:-1] 105 merged_file_contents = merged_file_contents[:-1]
106 print merged_file_contents 106 print merged_file_contents
107 sys.exit(value) 107 sys.exit(value)
108 108
109 if '__main__' == __name__: 109 if '__main__' == __name__:
110 main(sys.argv) 110 main(sys.argv)
OLDNEW
« no previous file with comments | « no previous file | webkit/tools/merge/merge.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698