]> khamidou — GitHub mirrors - arcanist.git/commit
Fix an issue with `arc branch` and very old branches
authorepriestley <git@epriestley.com>
Wed, 18 Jun 2014 15:35:29 +0000 (08:35 -0700)
committerepriestley <git@epriestley.com>
Wed, 18 Jun 2014 15:35:29 +0000 (08:35 -0700)
commit2198cc2849c8a0d8cdfb1c515a43a61592128533
tree2656a18da549e9c34248b6dd4d01674228e300c6
parentdd1f93d77b5fc19381c78f6d968fd974d22095a8
Fix an issue with `arc branch` and very old branches

Summary:
In D9595, we stopped parsing short-form "Differential Revision:" fields in commit messages, and only accept URLs.

I have one of the older style commit messages in my local `arcanist/`, so now we go down this parse failure branch in `arc branch`. This has never worked quite correctly, and if the parse fails we end up with a bad branch dictionary that is missing fields.

Test Plan: Ran `arc branch` in a working copy with an old `Differential Revision:` field at the head of a branch. Before patch: explosions; after patch: works great.

Reviewers: joshuaspence

Reviewed By: joshuaspence

Subscribers: epriestley

Differential Revision: https://secure.phabricator.com/D9620
src/workflow/ArcanistFeatureWorkflow.php