1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-13 18:32:41 +01:00
phorge-phorge/src/applications/differential/parser
epriestley a272ddcc78 Fix two parsing issues for diffs with damaged whitespace
Summary:
Fixes T4941. If a diff has had trailing whitespace stripped, we will fail to handle empty lines correctly (previously, these lines had a leading space when the original tool emitted them).

(This probably stopped working around the time we began retaining newlines.)

Test Plan: The diff in T4941 now parses and renders correctly.

Reviewers: asherkin, btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T4941

Differential Revision: https://secure.phabricator.com/D8968
2014-05-04 10:48:49 -07:00
..
__tests__ Clean up various pieces of dead/obsolete Differential code 2014-03-11 13:02:19 -07:00
DifferentialChangesetParser.php Make most file reads policy-aware 2013-09-30 09:38:13 -07:00
DifferentialCommitMessageParser.php Move Differential commit message parsing to a separate, tested class 2014-03-07 17:44:35 -08:00
DifferentialCustomFieldDependsOnParser.php Clean up various pieces of dead/obsolete Differential code 2014-03-11 13:02:19 -07:00
DifferentialCustomFieldRevertsParser.php Clean up various pieces of dead/obsolete Differential code 2014-03-11 13:02:19 -07:00
DifferentialHunkParser.php Fix two parsing issues for diffs with damaged whitespace 2014-05-04 10:48:49 -07:00