]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Create a new diff if the user says so
authorvrana <jakubv@fb.com>
Fri, 22 Feb 2013 17:48:33 +0000 (09:48 -0800)
committervrana <jakubv@fb.com>
Fri, 22 Feb 2013 17:59:57 +0000 (09:59 -0800)
Summary: If I have //Differential Revision// in my commit message then `arc diff --create` updates that revision instead of creating a new one.

Test Plan:
  $ arc diff --create # on top of commit message with Differential Revision

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D5077

src/workflow/ArcanistDiffWorkflow.php

index dc10fa944f684945b6f7cce9d342bbaa6a58aaa4..f589ec389f2111467c7469a6e7b1cb8fab0a3115 100644 (file)
@@ -1855,6 +1855,7 @@ EOTEXT
     $local = $repository_api->getLocalCommitInformation();
     if ($local) {
       $result = $this->parseCommitMessagesIntoFields($local);
+      unset($result[0]['revisionID']);
     }
 
     $result[0] = $this->dispatchWillBuildEvent($result[0]);