From 9fb634880e2649af6aa3cb7f9b45cc995058100c Mon Sep 17 00:00:00 2001 From: epriestley Date: Wed, 22 Feb 2012 10:07:43 -0800 Subject: [PATCH] Make 'arc diff --auto' only identify open revisions Summary: Otherwise, "arc diff --auto" on a branch with the same name as some other branch you previously used tries to update that revision. Test Plan: Ran "arc diff --auto" on a "listdocs" branch; arc didn't try to update D1639. Reviewers: btrahan Reviewed By: btrahan CC: aran, epriestley Maniphest Tasks: T614 Differential Revision: https://secure.phabricator.com/D1662 --- src/workflow/diff/ArcanistDiffWorkflow.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/workflow/diff/ArcanistDiffWorkflow.php b/src/workflow/diff/ArcanistDiffWorkflow.php index 0fda201e..78dfc09d 100644 --- a/src/workflow/diff/ArcanistDiffWorkflow.php +++ b/src/workflow/diff/ArcanistDiffWorkflow.php @@ -1127,6 +1127,7 @@ EOTEXT $this->getConduit(), array( 'authors' => array($this->getUserPHID()), + 'status' => 'status-open', )); if (!$revisions) { $is_create = true; -- 2.43.0