From: vrana Date: Fri, 22 Feb 2013 17:48:33 +0000 (-0800) Subject: Create a new diff if the user says so X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=6a7a92cdccf3df9179e1acf40e31d4302293c824;p=arcanist.git Create a new diff if the user says so 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 --- diff --git a/src/workflow/ArcanistDiffWorkflow.php b/src/workflow/ArcanistDiffWorkflow.php index dc10fa94..f589ec38 100644 --- a/src/workflow/ArcanistDiffWorkflow.php +++ b/src/workflow/ArcanistDiffWorkflow.php @@ -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]);