Differential D15783 Diff 38030 src/applications/diffusion/conduit/DiffusionQueryCommitsConduitAPIMethod.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/conduit/DiffusionQueryCommitsConduitAPIMethod.php
Show All 36 Lines | protected function execute(ConduitAPIRequest $request) { | ||||
$repository_phid = $request->getValue('repositoryPHID'); | $repository_phid = $request->getValue('repositoryPHID'); | ||||
if ($repository_phid) { | if ($repository_phid) { | ||||
$repository = id(new PhabricatorRepositoryQuery()) | $repository = id(new PhabricatorRepositoryQuery()) | ||||
->setViewer($request->getUser()) | ->setViewer($request->getUser()) | ||||
->withPHIDs(array($repository_phid)) | ->withPHIDs(array($repository_phid)) | ||||
->executeOne(); | ->executeOne(); | ||||
if ($repository) { | if ($repository) { | ||||
$query->withRepository($repository); | $query->withRepository($repository); | ||||
if ($bypass_cache) { | |||||
$repository->synchronizeWorkingCopyBeforeRead(); | |||||
} | |||||
} | } | ||||
} | } | ||||
$names = $request->getValue('names'); | $names = $request->getValue('names'); | ||||
if ($names) { | if ($names) { | ||||
$query->withIdentifiers($names); | $query->withIdentifiers($names); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 86 Lines • Show Last 20 Lines |