From 6a7a92cdccf3df9179e1acf40e31d4302293c824 Mon Sep 17 00:00:00 2001 From: vrana Date: Fri, 22 Feb 2013 09:48:33 -0800 Subject: [PATCH] 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 --- src/workflow/ArcanistDiffWorkflow.php | 1 + 1 file changed, 1 insertion(+) 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]);