Chromium Code Reviews| Index: patch.py |
| diff --git a/patch.py b/patch.py |
| index a7eef3f24fc2f1468dc25ff35c79a999b2c83155..67d88130d05b26606ce05cd0e7ef0ac0311e8021 100644 |
| --- a/patch.py |
| +++ b/patch.py |
| @@ -215,6 +215,9 @@ class FilePatchDiff(FilePatchBase): |
| """Processes a single line of the header. |
| Returns True if it should continue looping. |
| + |
| + Format is described to |
| + http://www.kernel.org/pub/software/scm/git/docs/git-diff.html |
| """ |
| # Handle these: |
| # rename from <> |
| @@ -242,11 +245,12 @@ class FilePatchDiff(FilePatchBase): |
| (match.group(1), line)) |
| return |
| - # Handle "new file mode \d{6}" |
| - match = re.match(r'^new file mode (\d{6})$', line) |
| + # Handle "new(| file) mode \d{6}" |
| + match = re.match(r'^new(| file) mode (\d{6})$', line) |
|
Dirk Pranke
2011/06/04 20:05:48
Not sure the comment tells you anything the line d
|
| if match: |
| - mode = match.group(1) |
| + mode = match.group(2) |
| # Only look at owner ACL for executable. |
| + # TODO(maruel): Add support to remove a property. |
| if bool(int(mode[4]) & 1): |
| self.svn_properties.append(('svn:executable', '*')) |