From: Nick Harper Date: Fri, 11 Nov 2011 00:02:40 +0000 (-0800) Subject: Check that rev is accepted in arc mark-committed --finalize X-Git-Tag: conduit-4~238 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=28eae6082139ccde5b2c98c9cf3fbda0059813e4;p=arcanist.git Check that rev is accepted in arc mark-committed --finalize Summary: If arc amend is run on a rev that isn't accepted, it runs arc mark-committed --finalize. The rev shouldn't be marked as committed if it hasn't been accepted, so this diff adds in that check. Test Plan: Ran arc amend on a rev that hasn't been accepted, checked that it didn't get marked as completed. Reviewers: jungejason, epriestley Reviewed By: epriestley CC: aran, epriestley, nh Differential Revision: 1104 --- diff --git a/src/workflow/mark-committed/ArcanistMarkCommittedWorkflow.php b/src/workflow/mark-committed/ArcanistMarkCommittedWorkflow.php index 654b9718..a83b5f25 100644 --- a/src/workflow/mark-committed/ArcanistMarkCommittedWorkflow.php +++ b/src/workflow/mark-committed/ArcanistMarkCommittedWorkflow.php @@ -121,7 +121,7 @@ EOTEXT array( 'name' => $this->getWorkingCopy()->getProjectID(), )); - if ($project_info['tracked']) { + if ($project_info['tracked'] || $revision['statusName'] != 'Accepted') { $actually_mark = false; } }