Merge lp:~richard-wilbur/bzr/update-diff-format-parser into lp:bzr
Status: | Merged |
---|---|
Approved by: | Richard Wilbur |
Approved revision: | no longer in the source branch. |
Merged at revision: | 6600 |
Proposed branch: | lp:~richard-wilbur/bzr/update-diff-format-parser |
Merge into: | lp:bzr |
Diff against target: |
144 lines (+54/-26) 2 files modified
bzrlib/diff.py (+39/-24) bzrlib/tests/test_diff.py (+15/-2) |
To merge this branch: | bzr merge lp:~richard-wilbur/bzr/update-diff-format-parser |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Richard Wilbur | Approve | ||
Review via email: mp+234855@code.launchpad.net |
Commit message
Split diff format option parser into a separate function, update to include all format options for GNU diff v3.2, and test parser. Fixes lp:1370435
Description of the change
Split diff format option parser into a separate function for testability, update to include all format options for GNU diff v3.2, and test parser.
This is needed because we default to 'unified' diff format if no other format is specified, but the parser didn't recognize several valid format specifiers. If we add '-u' (unified diff format) to a set of options already containing a valid format specifier, diff rightfully complains.
Also fixed a diagnostic message, an exception handler, some spelling and latest copyright dates.
Fixes lp:1370435
The changes are relatively trivial.
Can't reproduce the bug with these changes.
Passes the test suite.
+1