From: epriestley Date: Tue, 15 Mar 2011 00:39:12 +0000 (-0700) Subject: asukhachev's patch for 'arc amend' not being overeager. X-Git-Tag: conduit-4~372 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=eb58ed1b8b3b8da06eb4668b6364f8207a824ca8;p=arcanist.git asukhachev's patch for 'arc amend' not being overeager. --- diff --git a/src/workflow/amend/ArcanistAmendWorkflow.php b/src/workflow/amend/ArcanistAmendWorkflow.php index a8a49d44..177f5cd5 100644 --- a/src/workflow/amend/ArcanistAmendWorkflow.php +++ b/src/workflow/amend/ArcanistAmendWorkflow.php @@ -130,9 +130,15 @@ EOTEXT $mark_workflow->run(); } - echo phutil_console_wrap( - "You may now push this commit upstream, as appropriate (e.g. with ". - "'git push', or 'git svn dcommit', or by printing and faxing it).\n"); + $remote_message = ArcanistDifferentialCommitMessage::newFromRawCorpus( + $message); + $remote_message->pullDataFromConduit($conduit); + if ($remote_message->getFieldValue('reviewedByGUIDs') || + $remote_message->getFieldValue('reviewedByPHIDs')) { + echo phutil_console_wrap( + "You may now push this commit upstream, as appropriate (e.g. with ". + "'git push', or 'git svn dcommit', or by printing and faxing it).\n"); + } } return 0;