From ea0f737e85644d5a6c55856a3090bf8d465f11f3 Mon Sep 17 00:00:00 2001 From: epriestley Date: Fri, 13 Apr 2012 10:55:28 -0700 Subject: [PATCH] Drop herusitic from Git Summary: See rage in T1117. Don't use the 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 | 13 ------------- src/workflow/diff/ArcanistDiffWorkflow.php | 5 ++++- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/src/repository/api/git/ArcanistGitAPI.php b/src/repository/api/git/ArcanistGitAPI.php index 1900e662..3511e715 100644 --- a/src/repository/api/git/ArcanistGitAPI.php +++ b/src/repository/api/git/ArcanistGitAPI.php @@ -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; } diff --git a/src/workflow/diff/ArcanistDiffWorkflow.php b/src/workflow/diff/ArcanistDiffWorkflow.php index 6f3c698c..13e6df2b 100644 --- a/src/workflow/diff/ArcanistDiffWorkflow.php +++ b/src/workflow/diff/ArcanistDiffWorkflow.php @@ -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)) -- 2.43.0