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
F17948904: D18541.id44525.diff
Thu, Jul 31, 10:22 PM
F17938124: D18541.diff
Thu, Jul 31, 1:49 AM
F17937830: D18541.id44524.diff
Thu, Jul 31, 1:39 AM
Unknown Object (File)
Jun 27 2025, 2:17 PM
Unknown Object (File)
Jun 27 2025, 2:15 PM
Unknown Object (File)
May 20 2025, 5:29 AM
Unknown Object (File)
May 10 2025, 5:30 AM
Unknown Object (File)
May 8 2025, 12:05 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