From: epriestley Date: Wed, 22 Feb 2012 18:07:43 +0000 (-0800) Subject: Make 'arc diff --auto' only identify open revisions X-Git-Tag: conduit-4~142 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=9fb634880e2649af6aa3cb7f9b45cc995058100c;p=arcanist.git 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 --- 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;