]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Fix 'arc lint --everything' when svn has uncommitted changes
authorEric Stern <eric@ericstern.com>
Mon, 12 Aug 2013 20:47:33 +0000 (13:47 -0700)
committerepriestley <git@epriestley.com>
Mon, 12 Aug 2013 20:47:43 +0000 (13:47 -0700)
Summary: My recent change adding --everything to arc lint could sometimes cause a "diff is empty" error, this patch fixes it.

Test Plan: Ran "arc lint --everything" before and after patch. No longer errors out. Only appeared to originally happen when there were uncommited changes in an svn repo.

Reviewers: epriestley

Reviewed By: epriestley

CC: Korvin, aran
Differential Revision: https://secure.phabricator.com/D6732

src/workflow/ArcanistLintWorkflow.php

index fb94a699e002aeb3136106894b0f07112d55ddae..45505f68c411dff12255d1ecbce8b232bf471d4c 100644 (file)
@@ -222,6 +222,7 @@ EOTEXT
       $paths = id(new FileFinder($working_copy->getProjectRoot()))
         ->excludePath($filter)
         ->find();
+      $this->shouldLintAll = true;
     } else {
       $paths = $this->selectPathsForWorkflow($paths, $rev);
     }