1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-25 15:00:58 +01:00
phorge-phorge/src/applications/differential/parser
epriestley 1baef494c1 Pick context windows for inlines in a slightly smarter way
Summary:
Ref T10694. This mostly prevents us from having a degenerate case if someone leaves a 200-line inline.

  - For one-line inlines, show 1 line of context above and below (3 lines total).
  - For 3+ line inlines, show just the inline.
  - For 7+ line inlines, show only the first part.

Test Plan: Made a bunch of weird long/short/different-sized comments, saw reasonble-appearing context in text and HTML mail output.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10694

Differential Revision: https://secure.phabricator.com/D15853
2016-05-05 11:15:09 -07:00
..
__tests__ Prevent "commit message magic words" parser from exploding on "reverts aaaa.....aaz" 2015-08-26 09:35:23 -07:00
DifferentialChangesetParser.php Pick context windows for inlines in a slightly smarter way 2016-05-05 11:15:09 -07:00
DifferentialCommitMessageParser.php Extend from Phobject 2015-06-15 18:02:27 +10: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 Various linter fixes 2015-08-11 22:36:55 +10:00
DifferentialLineAdjustmentMap.php Implement rough content-aware inline adjustment rules for ghosts 2015-05-07 14:09:41 -07:00