]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Remove arcanist projects from working copy code
authorJoshua Spence <josh@joshuaspence.com>
Mon, 25 May 2015 21:08:56 +0000 (07:08 +1000)
committerJoshua Spence <josh@joshuaspence.com>
Mon, 25 May 2015 21:08:56 +0000 (07:08 +1000)
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

src/configuration/ArcanistSettings.php
src/parser/ArcanistBundle.php
src/repository/api/ArcanistSubversionAPI.php
src/workingcopyidentity/ArcanistWorkingCopyIdentity.php

index b6ede18096146136093e444e941ba7b7c0fd3eed..cd5f8f013309e533e5a3e1b42cf956599d543e9a 100644 (file)
@@ -49,15 +49,6 @@ final class ArcanistSettings {
           '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',
index b642292c36abfe7e094fd5c606a1b8e9a1e81740..14ebbe054200ec26d43fe76caddf188ed1335174 100644 (file)
@@ -133,7 +133,6 @@ final class ArcanistBundle {
         $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');
@@ -142,7 +141,6 @@ final class ArcanistBundle {
     } 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;
index 707d2d9345541fb1ba9fc9b7bcdab93aef547ac5..d8420a1b5ece49fa0b84fbc0b3841195a3be1b49 100644 (file)
@@ -648,17 +648,7 @@ EODIFF;
     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()) {
@@ -667,8 +657,7 @@ EODIFF;
     }
 
     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;
index ba1985df6b523725a3442e71cf450e5ce6ba61d4..122997de7112b6a2610b95a645547a81940a7262 100644 (file)
@@ -216,16 +216,6 @@ final class ArcanistWorkingCopyIdentity {
     $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;
   }