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
Unknown Object (File)
Mon, Aug 17, 12:38 AM
Unknown Object (File)
Aug 11 2026, 5:37 PM
Unknown Object (File)
Jul 4 2026, 9:44 AM
Unknown Object (File)
Mar 2 2026, 1:18 AM
Unknown Object (File)
Feb 28 2026, 3:21 PM
Unknown Object (File)
Feb 27 2026, 3:33 PM
Unknown Object (File)
Feb 7 2026, 7:06 PM
Unknown Object (File)
Nov 3 2025, 10:31 PM
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