Summary: Ref T7604. Remove "arcanist projects" from `ArcanistWorkingCopy` and a few other callsites. Depends on D12999.
Test Plan: Can't really think of how to test this.
Reviewers: #blessed_reviewers, epriestley
Reviewed By: #blessed_reviewers, epriestley
Subscribers: epriestley
Maniphest Tasks: T7604
Differential Revision: https://secure.phabricator.com/D12945
'Associates this working copy with a specific installation of '.
'Phabricator.'),
),
- 'project.name' => array(
- 'type' => 'string',
- 'legacy' => 'project_id',
- 'example' => '"arcanist"',
- 'help' => pht(
- 'Associates this working copy with a named Arcanist Project. '.
- 'This is primarily useful if you use SVN and have several different '.
- 'projects in the same repository.'),
- ),
'lint.engine' => array(
'type' => 'string',
'legacy' => 'lint_engine',
$path);
$meta_info = $future->resolveJSON();
$version = idx($meta_info, 'version', 0);
- $project_name = idx($meta_info, 'projectName');
$base_revision = idx($meta_info, 'baseRevision');
$revision_id = idx($meta_info, 'revisionID');
$encoding = idx($meta_info, 'encoding');
} else {
// this arc bundle was probably made before we started storing meta info
$version = 0;
- $project_name = null;
$base_revision = null;
$revision_id = null;
$encoding = null;
ConduitClient $conduit,
array $query) {
- // We don't have much to go on in SVN, look for revisions that came from
- // this directory and belong to the same project.
-
- $project = $this->getWorkingCopyIdentity()->getProjectID();
- if (!$project) {
- return array();
- }
-
- $results = $conduit->callMethodSynchronous(
- 'differential.query',
- $query);
+ $results = $conduit->callMethodSynchronous('differential.query', $query);
foreach ($results as $key => $result) {
if ($result['sourcePath'] != $this->getPath()) {
}
foreach ($results as $key => $result) {
- $results[$key]['why'] = pht(
- 'Matching arcanist project name and working copy directory path.');
+ $results[$key]['why'] = pht('Matching working copy directory path.');
}
return $results;
$this->projectConfig = $config;
}
- public function getProjectID() {
- $project_id = $this->getProjectConfig('project.name');
- if ($project_id) {
- return $project_id;
- }
-
- // This is an older name for the setting.
- return $this->getProjectConfig('project_id');
- }
-
public function getProjectRoot() {
return $this->projectRoot;
}