Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14079756
D12962.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D12962.diff
View Options
diff --git a/src/parser/ArcanistBundle.php b/src/parser/ArcanistBundle.php
--- a/src/parser/ArcanistBundle.php
+++ b/src/parser/ArcanistBundle.php
@@ -9,7 +9,6 @@
private $conduit;
private $blobs = array();
private $diskPath;
- private $projectID;
private $baseRevision;
private $revisionID;
private $encoding;
@@ -63,15 +62,6 @@
return $this;
}
- public function setProjectID($project_id) {
- $this->projectID = $project_id;
- return $this;
- }
-
- public function getProjectID() {
- return $this->projectID;
- }
-
public function setBaseRevision($base_revision) {
$this->baseRevision = $base_revision;
return $this;
@@ -178,7 +168,6 @@
$obj = new ArcanistBundle();
$obj->changes = $changes;
$obj->diskPath = $path;
- $obj->setProjectID($project_name);
$obj->setBaseRevision($base_revision);
$obj->setRevisionID($revision_id);
$obj->setEncoding($encoding);
@@ -228,7 +217,6 @@
$meta_info = array(
'version' => 5,
- 'projectName' => $this->getProjectID(),
'baseRevision' => $this->getBaseRevision(),
'revisionID' => $this->getRevisionID(),
'encoding' => $this->getEncoding(),
diff --git a/src/workflow/ArcanistExportWorkflow.php b/src/workflow/ArcanistExportWorkflow.php
--- a/src/workflow/ArcanistExportWorkflow.php
+++ b/src/workflow/ArcanistExportWorkflow.php
@@ -225,7 +225,6 @@
}
$bundle = ArcanistBundle::newFromChanges($changes);
- $bundle->setProjectID($this->getWorkingCopy()->getProjectID());
$bundle->setBaseRevision(
$repository_api->getSourceControlBaseRevision());
// NOTE: we can't get a revision ID for SOURCE_LOCAL
@@ -247,18 +246,6 @@
}
$try_encoding = nonempty($this->getArgument('encoding'), null);
- if (!$try_encoding) {
- try {
- $project_info = $this->getConduit()->callMethodSynchronous(
- 'arcanist.projectinfo',
- array(
- 'name' => $bundle->getProjectID(),
- ));
- $try_encoding = $project_info['encoding'];
- } catch (ConduitClientException $e) {
- $try_encoding = null;
- }
- }
if ($try_encoding) {
$bundle->setEncoding($try_encoding);
diff --git a/src/workflow/ArcanistWorkflow.php b/src/workflow/ArcanistWorkflow.php
--- a/src/workflow/ArcanistWorkflow.php
+++ b/src/workflow/ArcanistWorkflow.php
@@ -1173,7 +1173,6 @@
$bundle->setConduit($conduit);
// since the conduit method has changes, assume that these fields
// could be unset
- $bundle->setProjectID(idx($diff, 'projectName'));
$bundle->setBaseRevision(idx($diff, 'sourceControlBaseRevision'));
$bundle->setRevisionID(idx($diff, 'revisionID'));
$bundle->setAuthorName(idx($diff, 'authorName'));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 23, 9:39 AM (17 h, 5 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6778109
Default Alt Text
D12962.diff (2 KB)
Attached To
Mode
D12962: Remove call to "arcanist.projectinfo" from `arc export`
Attached
Detach File
Event Timeline
Log In to Comment