]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Make 'arc diff --auto' only identify open revisions
authorepriestley <git@epriestley.com>
Wed, 22 Feb 2012 18:07:43 +0000 (10:07 -0800)
committerepriestley <git@epriestley.com>
Wed, 22 Feb 2012 18:07:43 +0000 (10:07 -0800)
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

index 0fda201e4a78a76bdd7820900494f6dab82e4810..78dfc09de27c92cf259d062f82e19fbf058ceaf9 100644 (file)
@@ -1127,6 +1127,7 @@ EOTEXT
         $this->getConduit(),
         array(
           'authors' => array($this->getUserPHID()),
+          'status'  => 'status-open',
         ));
       if (!$revisions) {
         $is_create = true;