From: epriestley Date: Tue, 3 Jul 2012 02:50:35 +0000 (-0700) Subject: Minor, stop arc upgrade from prompting for commit ranges. X-Git-Tag: conduit-6~212 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=636646420243be1d311935ef1e133bf1f809f4f7;p=arcanist.git Minor, stop arc upgrade from prompting for commit ranges. --- diff --git a/src/workflow/ArcanistUpgradeWorkflow.php b/src/workflow/ArcanistUpgradeWorkflow.php index d2ced0e1..a981557e 100644 --- a/src/workflow/ArcanistUpgradeWorkflow.php +++ b/src/workflow/ArcanistUpgradeWorkflow.php @@ -61,6 +61,11 @@ EOTEXT $repository_api = ArcanistRepositoryAPI::newAPIFromWorkingCopyIdentity( $working_copy); + + // Force the range to HEAD^..HEAD, which is meaningless but keeps us + // from triggering "base" rules or other commit range resolution rules + // that might prompt the user when we pull the working copy status. + $repository_api->setRelativeCommit('HEAD^'); $this->setRepositoryAPI($repository_api); // Require no local changes.