Page MenuHomePhabricator

Provide better parsing primitives for hunks
ClosedPublic

Authored by epriestley on Mar 24 2015, 5:54 PM.
Tags
None
Referenced Files
F15538138: D12144.diff
Thu, Apr 24, 5:32 PM
F15483779: D12144.id29193.diff
Wed, Apr 9, 2:21 PM
F15457302: D12144.id29203.diff
Sun, Mar 30, 3:30 PM
F15403460: D12144.diff
Mar 18 2025, 3:28 AM
F15398145: D12144.id29193.diff
Mar 16 2025, 11:26 PM
F15384639: D12144.diff
Mar 14 2025, 8:28 PM
F15381990: D12144.id.diff
Mar 14 2025, 10:15 AM
F15338766: D12144.diff
Mar 9 2025, 12:45 PM
Subscribers

Details

Reviewers
btrahan
Maniphest Tasks
Restricted Maniphest Task
Commits
Restricted Diffusion Commit
rP74a4c2cf0b1b: Provide better parsing primitives for hunks
Summary

Ref T1266. This prepares to fix case (2) on T1266 by improving the robustness of hunk parsing.

In particular, the copy detection code abuses this API because it isn't currently expressive or flexible enough.

Make it more flexible and cover it exhaustively.

I'll move callsites to the new stuff in upcoming revisions.

Test Plan

Unit tests.

Diff Detail

Repository
rP Phabricator
Branch
movecode1
Lint
Lint Passed
SeverityLocationCodeMessage
Advicesrc/applications/differential/storage/DifferentialHunk.php:119XHP16TODO Comment
Unit
Tests Passed
Build Status
Buildable 4960
Build 4978: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

epriestley retitled this revision from to Provide better parsing primitives for hunks.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: btrahan.
epriestley added a task: Restricted Maniphest Task.
btrahan edited edge metadata.

Yay unit tests!

This revision is now accepted and ready to land.Mar 24 2015, 6:33 PM
This revision was automatically updated to reflect the committed changes.