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)
Thu, Apr 25, 2:13 AM
Unknown Object (File)
Sun, Apr 21, 7:34 PM
Unknown Object (File)
Fri, Apr 19, 6:48 PM
Unknown Object (File)
Fri, Apr 12, 11:06 PM
Unknown Object (File)
Tue, Apr 2, 7:29 AM
Unknown Object (File)
Mar 20 2024, 6:33 AM
Unknown Object (File)
Mar 12 2024, 5:12 PM
Unknown Object (File)
Feb 24 2024, 12:38 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
Branch
remline
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 18307
Build 24636: Run Core Tests
Build 24635: arc lint + arc unit