Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/query/DiffusionCommitQuery.php
Show First 20 Lines • Show All 63 Lines • ▼ Show 20 Lines | final class DiffusionCommitQuery | ||||
public function withRepository(PhabricatorRepository $repository) { | public function withRepository(PhabricatorRepository $repository) { | ||||
$this->withDefaultRepository($repository); | $this->withDefaultRepository($repository); | ||||
$this->withRepositoryIDs(array($repository->getID())); | $this->withRepositoryIDs(array($repository->getID())); | ||||
return $this; | return $this; | ||||
} | } | ||||
/** | /** | ||||
* Look up commits in a specific repository. Prefer | * Look up commits in a specific repository. Prefer | ||||
* @{method:withRepositoryIDs}; the underyling table is keyed by ID such | * @{method:withRepositoryIDs}; the underlying table is keyed by ID such | ||||
* that this method requires a separate initial query to map PHID to ID. | * that this method requires a separate initial query to map PHID to ID. | ||||
*/ | */ | ||||
public function withRepositoryPHIDs(array $phids) { | public function withRepositoryPHIDs(array $phids) { | ||||
$this->repositoryPHIDs = $phids; | $this->repositoryPHIDs = $phids; | ||||
return $this; | return $this; | ||||
} | } | ||||
/** | /** | ||||
▲ Show 20 Lines • Show All 566 Lines • Show Last 20 Lines |