Page MenuHomePhabricator

Fix an issue where the last line of block-based diffs could be incorrectly hidden
ClosedPublic

Authored by epriestley on Jan 30 2020, 4:17 PM.
Tags
None
Referenced Files
F19920616: D20959.diff
Sun, Apr 5, 9:46 PM
F19898156: D20959.id49935.diff
Sun, Mar 29, 10:49 AM
F19835611: D20959.diff
Wed, Mar 11, 7:24 AM
F19828948: D20959.id49934.diff
Tue, Mar 10, 12:02 AM
F19687480: D20959.id49934.diff
Feb 9 2026, 3:54 PM
F19546219: D20959.id49934.diff
Jan 25 2026, 4:14 AM
F19524736: D20959.id49934.diff
Jan 18 2026, 3:42 AM
F19521753: D20959.id49935.diff
Jan 17 2026, 1:40 AM
Subscribers
None

Details

Summary

Fixes T13468. See that task for discussion. The older source-rendering code mixes "line number" / "1-based" lists with "block number" / "0-based" lists and then has other bugs which cancel this out.

For block-based diffs, build an explicit block-based mask with only block numbers. This sort of sidesteps the whole issue.

Test Plan

Viewed the diff with the original reproduction case, plus various other block-based diffs, including one-block image diffs, in unified and side-by-side mode. Didn't spot any oddities.

Diff Detail

Repository
rP Phabricator
Branch
jupyter1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 23760
Build 32676: Run Core Tests
Build 32675: arc lint + arc unit