1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-12 18:02:39 +01:00
phorge-arcanist/src/workingcopy/ArcanistFilesystemWorkingCopy.php
epriestley adea2550f5 Introduce "arc inspect" and some of the new ref/hardpoint classes
Summary:
Ref T11968. Inches toward the new ref/hardpoint code by introducing the modern refs as "RefPro" objects and supporting an "arc inspect <object>" to load objects and hardpoints.

This doesn't impact any existing runtime behavior.

Test Plan: Ran "arc inspect [--all] commit(...)", got hardpoint queries and yield-based data fetching.

Maniphest Tasks: T11968

Differential Revision: https://secure.phabricator.com/D21078
2020-04-10 05:01:25 -07:00

27 lines
667 B
PHP

<?php
final class ArcanistFilesystemWorkingCopy
extends ArcanistWorkingCopy {
public function getMetadataDirectory() {
return null;
}
protected function newWorkingCopyFromDirectories(
$working_directory,
$ancestor_directory) {
return null;
}
protected function newRepositoryAPI() {
return new ArcanistFilesystemAPI($this->getPath());
}
public function getProjectConfigurationFilePath() {
// We don't support project-level configuration for "filesytem" working
// copies because scattering random ".arcconfig" files around the
// filesystem and having them affect program behavior is silly.
return null;
}
}