]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Remove unnecessary usages of newv()
authorvrana <jakubv@fb.com>
Wed, 30 May 2012 23:04:45 +0000 (16:04 -0700)
committervrana <jakubv@fb.com>
Wed, 30 May 2012 23:11:27 +0000 (16:11 -0700)
Test Plan:
  arc lint

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Koolvin
Differential Revision: https://secure.phabricator.com/D2611

src/repository/api/base/ArcanistRepositoryAPI.php

index 841490926d0a2f9da760363d7b5f2ea7f92897ff..30f77db7a1dd5c9b511a544678aa08edb08dceae 100644 (file)
@@ -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;
     }