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)
May 20 2025, 5:29 AM
Unknown Object (File)
May 10 2025, 5:30 AM
Unknown Object (File)
May 8 2025, 12:05 AM
Unknown Object (File)
Apr 29 2025, 11:56 AM
Unknown Object (File)
Apr 29 2025, 6:32 AM
Unknown Object (File)
Apr 29 2025, 12:02 AM
Unknown Object (File)
Apr 27 2025, 10:53 PM
Unknown Object (File)
Apr 27 2025, 4:04 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 18306
Build 24634: Run Core Tests
Build 24633: arc lint + arc unit