From 636646420243be1d311935ef1e133bf1f809f4f7 Mon Sep 17 00:00:00 2001 From: epriestley Date: Mon, 2 Jul 2012 19:50:35 -0700 Subject: [PATCH] Minor, stop arc upgrade from prompting for commit ranges. --- src/workflow/ArcanistUpgradeWorkflow.php | 5 +++++ 1 file changed, 5 insertions(+) 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.