]> khamidou — GitHub mirrors - arcanist.git/commitdiff
asukhachev's patch for 'arc amend' not being overeager.
authorepriestley <epriestley@phabricator.com>
Tue, 15 Mar 2011 00:39:12 +0000 (17:39 -0700)
committerepriestley <epriestley@phabricator.com>
Tue, 15 Mar 2011 00:39:12 +0000 (17:39 -0700)
src/workflow/amend/ArcanistAmendWorkflow.php

index a8a49d44e8c03718d2bdfc9f2cfc7f551f9873d2..177f5cd5b59986af3eb93257de9a09799e13a79c 100644 (file)
@@ -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;