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
F15417762: D18541.id44524.diff
Thu, Mar 20, 6:17 PM
F15412425: D18541.id.diff
Wed, Mar 19, 12:57 PM
Unknown Object (File)
Feb 9 2025, 4:43 AM
Unknown Object (File)
Feb 9 2025, 4:43 AM
Unknown Object (File)
Feb 9 2025, 4:43 AM
Unknown Object (File)
Feb 9 2025, 4:43 AM
Unknown Object (File)
Feb 9 2025, 4:43 AM
Unknown Object (File)
Feb 6 2025, 5:17 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