From ec35375e96adb3abf2eba885ffc9da7b04b59e37 Mon Sep 17 00:00:00 2001 From: Tal Shiri Date: Mon, 8 Sep 2014 14:02:25 -0700 Subject: [PATCH] restored --head support 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 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/workflow/ArcanistDiffWorkflow.php b/src/workflow/ArcanistDiffWorkflow.php index de3818ee..a8e13ab2 100644 --- a/src/workflow/ArcanistDiffWorkflow.php +++ b/src/workflow/ArcanistDiffWorkflow.php @@ -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() {