Summary: Fixes T2461. Similarly to `arc lint --everything`, `arc unit --everything` should work without a base commit.
Test Plan: Removed the `.git/arc/default-relative-commit` file and ran `arc unit --everything`.
Reviewers: #blessed_reviewers, epriestley
Reviewed By: #blessed_reviewers, epriestley
Subscribers: Korvin, epriestley
Maniphest Tasks: T2461
Differential Revision: https://secure.phabricator.com/D11459
'flag runs every test.');
}
- $paths = $this->selectPathsForWorkflow($paths, $rev);
+ if ($everything) {
+ $paths = iterator_to_array($this->getRepositoryApi()->getAllFiles());
+ } else {
+ $paths = $this->selectPathsForWorkflow($paths, $rev);
+ }
if (!class_exists($engine_class) ||
!is_subclass_of($engine_class, 'ArcanistUnitTestEngine')) {