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)
Tue, Dec 10, 7:37 PM
Unknown Object (File)
Mon, Dec 9, 2:02 PM
Unknown Object (File)
Sun, Dec 8, 7:21 PM
Unknown Object (File)
Tue, Dec 3, 11:58 AM
Unknown Object (File)
Mon, Dec 2, 12:12 PM
Unknown Object (File)
Wed, Nov 27, 12:21 PM
Unknown Object (File)
Mon, Nov 25, 8:49 AM
Unknown Object (File)
Nov 20 2024, 7:42 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