Page MenuHomePhabricator

When mapping phantom comments across changes, correct an off-by-one issue
ClosedPublic

Authored by epriestley on Feb 21 2021, 5:03 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Mar 27, 8:18 PM
Unknown Object (File)
Wed, Mar 27, 8:18 PM
Unknown Object (File)
Wed, Mar 27, 8:18 PM
Unknown Object (File)
Wed, Mar 27, 12:44 PM
Unknown Object (File)
Feb 20 2024, 11:36 AM
Unknown Object (File)
Jan 16 2024, 5:05 PM
Unknown Object (File)
Nov 30 2023, 5:13 AM
Unknown Object (File)
Nov 26 2023, 12:15 AM
Subscribers
None

Details

Summary

Ref T13617. When an inline comment is added inside a block of added lines, it currently ends up off-by-one when porting forward.

This is a disagreement between the mapping engine and the display engine about what "offset" means. Choose the simpler of the two interpretations.

Test Plan
  • Created a revision with the diff in T13617.
  • Added an inline in the middle of the added block.
  • Updated the revision with the same diff.
    • Before: inline incorrectly moves up by one line.
    • After: inline maps correctly.

Diff Detail

Repository
rP Phabricator
Branch
diff1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 25164
Build 34729: Run Core Tests
Build 34728: arc lint + arc unit

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Feb 23 2021, 7:08 PM
This revision was automatically updated to reflect the committed changes.