Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15465074
D19715.id47109.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
919 B
Referenced Files
None
Subscribers
None
D19715.id47109.diff
View Options
Index: src/repository/api/__tests__/ArcanistRepositoryAPIStateTestCase.php
===================================================================
--- src/repository/api/__tests__/ArcanistRepositoryAPIStateTestCase.php
+++ src/repository/api/__tests__/ArcanistRepositoryAPIStateTestCase.php
@@ -34,11 +34,9 @@
$fixture = PhutilDirectoryFixture::newFromArchive($dir.'/'.$test);
$fixture_path = $fixture->getPath();
- $working_copy = ArcanistWorkingCopyIdentity::newFromPath($fixture_path);
- $configuration_manager = new ArcanistConfigurationManager();
- $configuration_manager->setWorkingCopyIdentity($working_copy);
- $api = ArcanistRepositoryAPI::newAPIFromConfigurationManager(
- $configuration_manager);
+ $working_copy = ArcanistWorkingCopy::newFromWorkingDirectory($fixture_path);
+
+ $api = $working_copy->newRepositoryAPI();
$api->setBaseCommitArgumentRules('arc:this');
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 3, 2:19 PM (1 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7382636
Default Alt Text
D19715.id47109.diff (919 B)
Attached To
Mode
D19715: [Wilds] Fix the last set of failing non-linter test cases
Attached
Detach File
Event Timeline
Log In to Comment