Changeset 53700 in webkit
- Timestamp:
- Jan 22, 2010 6:13:27 AM (14 years ago)
- Location:
- trunk/BugsSite
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BugsSite/ChangeLog
r53544 r53700 1 2010-01-22 Janusz Lewandowski <lew21@xtreeme.org> 2 3 Reviewed by Maciej Stachowiak. 4 5 run-webkit-tests fails on Ruby 1.9 6 https://bugs.webkit.org/show_bug.cgi?id=33554 7 inject does not work with strings any more, so BugsSite/PrettyPatch/PrettyPatch.rb prints lots of errors. 8 9 * PrettyPatch/PrettyPatch.rb: 10 1 11 2010-01-20 Tor Arne Vestbø <tor.arne.vestbo@nokia.com> 2 12 -
trunk/BugsSite/PrettyPatch/PrettyPatch.rb
r51826 r53700 295 295 def self.parse(string) 296 296 haveSeenDiffHeader = false 297 linesForDiffs = string.inject([]) do |diffChunks, line| 297 linesForDiffs = [] 298 string.each_line do |line| 298 299 if (PrettyPatch.diff_header?(line)) 299 diffChunks << []300 linesForDiffs << [] 300 301 haveSeenDiffHeader = true 301 302 elsif (!haveSeenDiffHeader && line =~ /^--- /) 302 diffChunks << []303 linesForDiffs << [] 303 304 haveSeenDiffHeader = false 304 305 end 305 diffChunks.last << line unless diffChunks.last.nil? 306 diffChunks 306 linesForDiffs.last << line unless linesForDiffs.last.nil? 307 307 end 308 308
Note: See TracChangeset
for help on using the changeset viewer.