| OLD | NEW |
| 1 require 'cgi' | 1 require 'cgi' |
| 2 require 'diff' | 2 require 'diff' |
| 3 require 'open3' | 3 require 'open3' |
| 4 require 'open-uri' | 4 require 'open-uri' |
| 5 require 'pp' | 5 require 'pp' |
| 6 require 'set' | 6 require 'set' |
| 7 require 'tempfile' | 7 require 'tempfile' |
| 8 | 8 |
| 9 module PrettyPatch | 9 module PrettyPatch |
| 10 | 10 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 START_OF_SECTION_FORMAT = /^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@\s*(.*
)/ | 80 START_OF_SECTION_FORMAT = /^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@\s*(.*
)/ |
| 81 | 81 |
| 82 START_OF_EXTENT_STRING = "%c" % 0 | 82 START_OF_EXTENT_STRING = "%c" % 0 |
| 83 END_OF_EXTENT_STRING = "%c" % 1 | 83 END_OF_EXTENT_STRING = "%c" % 1 |
| 84 | 84 |
| 85 # We won't search for intra-line diffs in lines longer than this length, to
avoid hangs. See <http://webkit.org/b/56109>. | 85 # We won't search for intra-line diffs in lines longer than this length, to
avoid hangs. See <http://webkit.org/b/56109>. |
| 86 MAXIMUM_INTRALINE_DIFF_LINE_LENGTH = 10000 | 86 MAXIMUM_INTRALINE_DIFF_LINE_LENGTH = 10000 |
| 87 | 87 |
| 88 SMALLEST_EQUAL_OPERATION = 3 | 88 SMALLEST_EQUAL_OPERATION = 3 |
| 89 | 89 |
| 90 OPENSOURCE_URL = "http://src.chromium.org/viewvc/blink/" | 90 OPENSOURCE_URL = "https://chromium.googlesource.com/chromium/src/+/master/th
ird_party/WebKit/" |
| 91 | 91 |
| 92 OPENSOURCE_DIRS = Set.new %w[ | 92 OPENSOURCE_DIRS = Set.new %w[ |
| 93 LayoutTests | 93 LayoutTests |
| 94 PerformanceTests | 94 PerformanceTests |
| 95 Source | 95 Source |
| 96 Tools | 96 Tools |
| 97 ] | 97 ] |
| 98 | 98 |
| 99 IMAGE_CHECKSUM_ERROR = "INVALID: Image lacks a checksum. This will fail with
a MISSING error in run-webkit-tests. Always generate new png files using run-we
bkit-tests." | 99 IMAGE_CHECKSUM_ERROR = "INVALID: Image lacks a checksum. This will fail with
a MISSING error in run-webkit-tests. Always generate new png files using run-we
bkit-tests." |
| 100 | 100 |
| (...skipping 895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 996 class ContextLine < Line | 996 class ContextLine < Line |
| 997 def initialize(context) | 997 def initialize(context) |
| 998 super("@", "@", context) | 998 super("@", "@", context) |
| 999 end | 999 end |
| 1000 | 1000 |
| 1001 def classes | 1001 def classes |
| 1002 super << "context" | 1002 super << "context" |
| 1003 end | 1003 end |
| 1004 end | 1004 end |
| 1005 end | 1005 end |
| OLD | NEW |