diff --git a/src/applications/releeph/conduit/work/ConduitAPI_releephwork_getbranchcommitmessage_Method.php b/src/applications/releeph/conduit/work/ConduitAPI_releephwork_getbranchcommitmessage_Method.php index 9f5c6932c8..a5cc3d8b52 100644 --- a/src/applications/releeph/conduit/work/ConduitAPI_releephwork_getbranchcommitmessage_Method.php +++ b/src/applications/releeph/conduit/work/ConduitAPI_releephwork_getbranchcommitmessage_Method.php @@ -55,6 +55,7 @@ final class ConduitAPI_releephwork_getbranchcommitmessage_Method // Not as customizable as a ReleephRequest's commit message. It doesn't // really need to be. + // TODO: Yes it does, see FB-specific stuff below. $commit_message = array(); $commit_message[] = $h_branch->getFullName(); $commit_message[] = $h_branch->getURI(); @@ -84,7 +85,7 @@ final class ConduitAPI_releephwork_getbranchcommitmessage_Method * @new-branch: * */ - $repo = $project->loadPhabricatorRepository(); + $repo = $project->getRepository(); switch ($repo->getVersionControlSystem()) { case PhabricatorRepositoryType::REPOSITORY_TYPE_GIT: $commit_message[] = sprintf( diff --git a/src/applications/releeph/controller/request/ReleephRequestEditController.php b/src/applications/releeph/controller/request/ReleephRequestEditController.php index e9e78cabbd..3784885a92 100644 --- a/src/applications/releeph/controller/request/ReleephRequestEditController.php +++ b/src/applications/releeph/controller/request/ReleephRequestEditController.php @@ -252,7 +252,7 @@ final class ReleephRequestEditController extends ReleephBranchController { ->setValue($title)); } else { $origin = $branch->getURI(); - $repo = $product->loadPhabricatorRepository(); + $repo = $product->getRepository(); $branch_cut_point = id(new PhabricatorRepositoryCommit()) ->loadOneWhere( 'phid = %s', diff --git a/src/applications/releeph/storage/ReleephProject.php b/src/applications/releeph/storage/ReleephProject.php index d6b520ac89..5735a49b87 100644 --- a/src/applications/releeph/storage/ReleephProject.php +++ b/src/applications/releeph/storage/ReleephProject.php @@ -95,14 +95,6 @@ final class ReleephProject extends ReleephDAO return $this->assertAttached($this->repository); } - // TODO: Remove once everything uses ProjectQuery. Also, T603. - public function loadPhabricatorRepository() { - return $this->loadOneRelative( - new PhabricatorRepository(), - 'phid', - 'getRepositoryPHID'); - } - public function getReleephFieldSelector() { return new ReleephDefaultFieldSelector(); }