| Index: third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/diff_parser.py
|
| diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/diff_parser.py b/third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/diff_parser.py
|
| index ea9efb218f22164dd5911393e69d21c2a94fbb3f..08fafb2da28738acf0b2ea6f15aafee1a18e5f23 100644
|
| --- a/third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/diff_parser.py
|
| +++ b/third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/diff_parser.py
|
| @@ -31,17 +31,15 @@
|
| import logging
|
| import re
|
|
|
| -
|
| _log = logging.getLogger(__name__)
|
|
|
| -
|
| conversion_patterns = (
|
| - (re.compile(r"^diff --git \w/(.+) \w/(?P<FilePath>.+)"), lambda matched: "Index: " + matched.group('FilePath') + "\n"),
|
| - (re.compile(r"^new file.*"), lambda matched: "\n"),
|
| - (re.compile(r"^index (([0-9a-f]{7}\.\.[0-9a-f]{7})|([0-9a-f]{40}\.\.[0-9a-f]{40})) [0-9]{6}"),
|
| + (re.compile("^diff --git \w/(.+) \w/(?P<FilePath>.+)"), lambda matched: "Index: " + matched.group('FilePath') + "\n"),
|
| + (re.compile("^new file.*"), lambda matched: "\n"),
|
| + (re.compile("^index (([0-9a-f]{7}\.\.[0-9a-f]{7})|([0-9a-f]{40}\.\.[0-9a-f]{40})) [0-9]{6}"),
|
| lambda matched: ("=" * 67) + "\n"),
|
| - (re.compile(r"^--- \w/(?P<FilePath>.+)"), lambda matched: "--- " + matched.group('FilePath') + "\n"),
|
| - (re.compile(r"^\+\+\+ \w/(?P<FilePath>.+)"), lambda matched: "+++ " + matched.group('FilePath') + "\n"),
|
| + (re.compile("^--- \w/(?P<FilePath>.+)"), lambda matched: "--- " + matched.group('FilePath') + "\n"),
|
| + (re.compile("^\+\+\+ \w/(?P<FilePath>.+)"), lambda matched: "+++ " + matched.group('FilePath') + "\n"),
|
| )
|
|
|
| index_pattern = re.compile(r"^Index: (?P<FilePath>.+)")
|
|
|