Page MenuHomePhabricator

Fix an issue in arc patch with git-svn
ClosedPublic

Authored by sowedance on Apr 7 2014, 10:53 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Dec 15, 5:27 PM
Unknown Object (File)
Sun, Dec 15, 7:07 AM
Unknown Object (File)
Fri, Dec 13, 8:05 AM
Unknown Object (File)
Thu, Dec 5, 7:49 AM
Unknown Object (File)
Thu, Dec 5, 7:45 AM
Unknown Object (File)
Thu, Dec 5, 7:45 AM
Unknown Object (File)
Thu, Dec 5, 2:24 AM
Unknown Object (File)
Wed, Nov 27, 10:04 AM
Subscribers

Details

Summary

We recently moved our HEAD and it caused some issues on arc patch with git-svn repos. The base revision is incorrect and patch will fail. Add the check in such case to make it work.
The check was there before but removed in change b202158. The reason wasn't mentioned there though.

Test Plan

Tried it on svn.

Diff Detail

Repository
rARC Arcanist
Branch
patch
Lint
Lint Passed
Unit
No Test Coverage

Event Timeline

sowedance retitled this revision from to Fix an issue in arc patch with git-svn.
sowedance updated this object.
sowedance edited the test plan for this revision. (Show Details)

I think we can do the right thing (apply to the correct local revision) by calling $api->getCanonicalRevisionName() to convert the possible git-svn base revision into a real Git revision. Does that work?

src/workflow/ArcanistPatchWorkflow.php
268

This seems incorrect -- it reverts the fix for T4596?

sowedance edited edge metadata.

Yep that works! Updated based on comments and tested on both git and git-svn.

epriestley edited edge metadata.

Awesome, thanks!

This revision is now accepted and ready to land.Apr 8 2014, 5:45 PM
epriestley updated this revision to Diff 20682.

Closed by commit rARC0cff627d758c (authored by @sowedance, committed by @epriestley).