]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Resolve further subtlety with untracked files.
authorepriestley <epriestley@javelinjs.com>
Sat, 19 Feb 2011 01:08:10 +0000 (17:08 -0800)
committerepriestley <epriestley@javelinjs.com>
Sat, 19 Feb 2011 01:08:10 +0000 (17:08 -0800)
Summary:

Test Plan:

Reviewers:

CC:

src/workflow/unit/ArcanistUnitWorkflow.php

index 46d632ed6f2bfa2047f1df042d69a34abdc831e5..71488138939a0b5d1d7f4c51f0457477214270d4 100644 (file)
@@ -71,13 +71,21 @@ EOTEXT
 
     if ($this->getArgument('paths')) {
       // TODO: deal with git stuff
-
       $paths = $this->getArgument('paths');
     } else {
       $paths = $repository_api->getWorkingCopyStatus();
+
+      // TODO: clean this up
+      foreach ($paths as $path => $mask) {
+        if ($mask & ArcanistRepositoryAPI::FLAG_UNTRACKED) {
+          unset($paths[$path]);
+        }
+      }
+
       $paths = array_keys($paths);
     }
 
+
     PhutilSymbolLoader::loadClass($engine_class);
     $engine = newv($engine_class, array());
     $engine->setWorkingCopy($working_copy);