Page MenuHomePhabricator

Fix a similar lint rendering issue when trimming identical lines out of patches
ClosedPublic

Authored by epriestley on Sep 5 2017, 11:53 PM.
Tags
None
Referenced Files
F18867238: D18541.diff
Mon, Nov 3, 10:31 PM
F18854932: D18541.id.diff
Nov 1 2025, 1:15 AM
F18826607: D18541.id44524.diff
Oct 24 2025, 4:52 AM
F18816840: D18541.id.diff
Oct 21 2025, 9:45 AM
F18783525: D18541.id44523.diff
Oct 13 2025, 7:37 AM
F18629710: D18541.id44525.diff
Sep 16 2025, 9:41 AM
F18623870: D18541.diff
Sep 15 2025, 5:55 PM
F18621279: D18541.diff
Sep 15 2025, 7:37 AM
Subscribers

Details

Summary

Ref T9846. See PHI48. See D18538 for a similar fix. We can contract the suffix lines too much if, e.g, a newline after another newline is removed. Prevent contraction to fewer than 0 lines.

Test Plan

Added a failing test, made it pass.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable