]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Drop <project + branch> herusitic from Git
authorepriestley <git@epriestley.com>
Fri, 13 Apr 2012 17:55:28 +0000 (10:55 -0700)
committerepriestley <git@epriestley.com>
Fri, 13 Apr 2012 17:55:28 +0000 (10:55 -0700)
Summary: See rage in T1117. Don't use the <project + branch> heuristic anymore..

Test Plan: Ran "arc diff --strict HEAD^" on a commit stacked on top of this one, got no matches.

Reviewers: btrahan, vrana, simpkins, beng

Reviewed By: btrahan

CC: aran, avive
Maniphest Tasks: T1117

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

src/repository/api/git/ArcanistGitAPI.php
src/workflow/diff/ArcanistDiffWorkflow.php

index 1900e6626a61901e3a5b8fcba956e4e20e9af06b..3511e7156bd5c649e66cc63d1e741ca3f7cfa2a9 100644 (file)
@@ -741,19 +741,6 @@ final class ArcanistGitAPI extends ArcanistRepositoryAPI {
         'commitHashes' => $hashes,
       ));
 
-    if ($results) {
-      return $results;
-    }
-
-    // If we still didn't succeed, try to find revisions by branch name.
-    $project = $this->getWorkingCopyIdentity()->getProjectID();
-    $results = $conduit->callMethodSynchronous(
-      'differential.query',
-      $query + array(
-        'branches'          => array($this->getBranchName()),
-        'arcanistProjects'  => array($project),
-      ));
-
     return $results;
   }
 
index 6f3c698cadcde9bf9183512348a9c5def97beaaa..13e6df2bf2595da24cc7f94f8cd41ed6632dd45e 100644 (file)
@@ -1502,7 +1502,10 @@ EOTEXT
     $template =
       rtrim($comments).
       "\n\n".
-      "# Enter a brief description of the changes included in this update.".
+      "# Enter a brief description of the changes included in this update.\n".
+      "#\n".
+      "# If you intended to create a new revision, use:\n".
+      "#  $ arc diff --create\n".
       "\n";
 
     $comments = id(new PhutilInteractiveEditor($template))