]> khamidou — GitHub mirrors - arcanist.git/commit
Catch ArcanistUsageException when getting git parent log info
authorNick Harper <nharper@fb.com>
Tue, 8 May 2012 23:31:26 +0000 (16:31 -0700)
committerNick Harper <nharper@fb.com>
Wed, 9 May 2012 00:32:54 +0000 (17:32 -0700)
commitb34915020eba8680a59069044b05223b89eea59e
tree1dab13d0089dc6e1bd9b23a973313446572496e8
parentb8b4082efd3b912ba95179b195490d5f30725dc1
Catch ArcanistUsageException when getting git parent log info

Summary:
ArcanistDiffWorkflow::getGitParentLogInfo() calls
ArcanistDifferentialCommitMessage::newFromRawCorpus() which may throw a
ArcanistUsageException if the parent commit message is malformed (specifically,
a bad "Differential Revision:" line); this should not stop arc diff.

Test Plan: successfully ran arc diff where the parent commit message was malformed.

Reviewers: epriestley, jungejason

Reviewed By: epriestley

CC: aran, Koolvin
Differential Revision: https://secure.phabricator.com/D2434
src/workflow/diff/ArcanistDiffWorkflow.php