]> khamidou — GitHub mirrors - arcanist.git/commitdiff
restored --head support
authorTal Shiri <eiopaa@gmail.com>
Mon, 8 Sep 2014 21:02:25 +0000 (14:02 -0700)
committerepriestley <git@epriestley.com>
Mon, 8 Sep 2014 21:02:26 +0000 (14:02 -0700)
Summary: the call to setHeadCommit() was accidentally placed in a `if ($background) {}` block, which was removed in 54bea94. This adds the removed call.

Test Plan: used --head, worked as expected

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D10447

src/workflow/ArcanistDiffWorkflow.php

index de3818ee761741a8d5d8a3f5dd5d3595e6adc5e9..a8e13ab2b2652315ba3a14fe36597e52de783cd1 100644 (file)
@@ -609,6 +609,12 @@ EOTEXT
     if ($repository_api->supportsCommitRanges()) {
       $this->parseBaseCommitArgument($this->getArgument('paths'));
     }
+
+    $head_commit = $this->getArgument('head');
+    if ($head_commit !== null) {
+      $repository_api->setHeadCommit($head_commit);
+    }
+
   }
 
   private function runDiffSetupBasics() {