Page MenuHomePhabricator

Provide better parsing primitives for hunks
ClosedPublic

Authored by epriestley on Mar 24 2015, 5:54 PM.
Tags
None
Referenced Files
F14063295: D12144.diff
Mon, Nov 18, 5:41 PM
F13998881: D12144.id29203.diff
Thu, Oct 24, 11:40 AM
F13990110: D12144.id29203.diff
Tue, Oct 22, 1:12 AM
F13978115: D12144.id.diff
Oct 18 2024, 9:38 PM
Unknown Object (File)
Sep 22 2024, 7:34 PM
Unknown Object (File)
Sep 9 2024, 9:02 PM
Unknown Object (File)
Sep 9 2024, 12:32 PM
Unknown Object (File)
Sep 2 2024, 8:42 AM
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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.