Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/query/DiffusionCommitQuery.php
| Show First 20 Lines • Show All 294 Lines • ▼ Show 20 Lines | protected function didFilterPage(array $commits) { | ||||
| return $commits; | return $commits; | ||||
| } | } | ||||
| protected function buildWhereClause(AphrontDatabaseConnection $conn_r) { | protected function buildWhereClause(AphrontDatabaseConnection $conn_r) { | ||||
| $where = array(); | $where = array(); | ||||
| if ($this->repositoryPHIDs !== null) { | if ($this->repositoryPHIDs !== null) { | ||||
| $map_repositories = id (new PhabricatorRepositoryQuery()) | $map_repositories = id(new PhabricatorRepositoryQuery()) | ||||
| ->setViewer($this->getViewer()) | ->setViewer($this->getViewer()) | ||||
| ->withPHIDs($this->repositoryPHIDs) | ->withPHIDs($this->repositoryPHIDs) | ||||
| ->execute(); | ->execute(); | ||||
| if (!$map_repositories) { | if (!$map_repositories) { | ||||
| throw new PhabricatorEmptyQueryException(); | throw new PhabricatorEmptyQueryException(); | ||||
| } | } | ||||
| $repository_ids = mpull($map_repositories, 'getID'); | $repository_ids = mpull($map_repositories, 'getID'); | ||||
| ▲ Show 20 Lines • Show All 304 Lines • Show Last 20 Lines | |||||