Chromium Code Reviews| Index: drover.py |
| =================================================================== |
| --- drover.py (revision 83340) |
| +++ drover.py (working copy) |
| @@ -120,8 +120,8 @@ |
| svn_log = subprocess2.check_output( |
| ['svn', 'log', url, '-r', str(revision)]).splitlines() |
|
M-A Ruel
2011/04/29 18:29:17
Replace this whole function with:
svn_log = subpr
Robert Sesek
2011/04/29 18:38:41
Done.
|
| # Don't include the header lines and the trailing "---..." line and eliminate |
| - # any '\r's. |
| - return ''.join([l.replace('\r','') for l in svn_log[3:-1]]) |
| + # any '\r's. Join with a newline as splitlines() will remove all linebreaks. |
| + return '\n'.join([l.replace('\r','') for l in svn_log[3:-1]]) |
| def getSVNVersionInfo(): |
| """Extract version information from SVN""" |