mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-29 18:22:41 +01:00
Remove unnecessary usages of newv()
Test Plan: arc lint Reviewers: epriestley Reviewed By: epriestley CC: aran, Koolvin Differential Revision: https://secure.phabricator.com/D2611
This commit is contained in:
parent
f288ee0e21
commit
5aef938391
1 changed files with 3 additions and 3 deletions
|
@ -73,13 +73,13 @@ abstract class ArcanistRepositoryAPI {
|
|||
// check if we're in an svn working copy
|
||||
list($err) = exec_manual('svn info');
|
||||
if (!$err) {
|
||||
$api = newv('ArcanistSubversionAPI', array($root));
|
||||
$api = new ArcanistSubversionAPI($root);
|
||||
$api->workingCopyIdentity = $working_copy;
|
||||
return $api;
|
||||
}
|
||||
|
||||
if (Filesystem::pathExists($root.'/.hg')) {
|
||||
$api = newv('ArcanistMercurialAPI', array($root));
|
||||
$api = new ArcanistMercurialAPI($root);
|
||||
$api->workingCopyIdentity = $working_copy;
|
||||
return $api;
|
||||
}
|
||||
|
@ -92,7 +92,7 @@ abstract class ArcanistRepositoryAPI {
|
|||
"is '{$git_root}'. Move '.arcconfig' file to the working copy root.");
|
||||
}
|
||||
|
||||
$api = newv('ArcanistGitAPI', array($root));
|
||||
$api = new ArcanistGitAPI($root);
|
||||
$api->workingCopyIdentity = $working_copy;
|
||||
return $api;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue