]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Minor, stop arc upgrade from prompting for commit ranges.
authorepriestley <git@epriestley.com>
Tue, 3 Jul 2012 02:50:35 +0000 (19:50 -0700)
committerepriestley <git@epriestley.com>
Tue, 3 Jul 2012 02:50:35 +0000 (19:50 -0700)
src/workflow/ArcanistUpgradeWorkflow.php

index d2ced0e19e3fb6b02726514c76a4673ceb40d227..a981557e76d07ee23a88d85c522bf9c1651356e0 100644 (file)
@@ -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.