Differential D11790 Diff 28420 src/applications/diffusion/conduit/DiffusionMergedCommitsQueryConduitAPIMethod.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/conduit/DiffusionMergedCommitsQueryConduitAPIMethod.php
| Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Lines | list($logs) = $repository->execxLocalCommand( | ||||
| $commit, | $commit, | ||||
| '^'.$first_parent); | '^'.$first_parent); | ||||
| $hashes = explode("\n", trim($logs)); | $hashes = explode("\n", trim($logs)); | ||||
| // Remove the merge commit. | // Remove the merge commit. | ||||
| $hashes = array_diff($hashes, array($commit)); | $hashes = array_diff($hashes, array($commit)); | ||||
| return DiffusionQuery::loadHistoryForCommitIdentifiers( | $history = DiffusionQuery::loadHistoryForCommitIdentifiers( | ||||
| $hashes, | $hashes, | ||||
| $drequest); | $drequest); | ||||
| return mpull($history, 'toDictionary'); | |||||
| } | } | ||||
| protected function getMercurialResult(ConduitAPIRequest $request) { | protected function getMercurialResult(ConduitAPIRequest $request) { | ||||
| $drequest = $this->getDiffusionRequest(); | $drequest = $this->getDiffusionRequest(); | ||||
| $repository = $drequest->getRepository(); | $repository = $drequest->getRepository(); | ||||
| $commit = $request->getValue('commit'); | $commit = $request->getValue('commit'); | ||||
| $limit = $this->getLimit($request); | $limit = $this->getLimit($request); | ||||
| Show All 20 Lines | list($logs) = $repository->execxLocalCommand( | ||||
| $commit, | $commit, | ||||
| $last_parent); | $last_parent); | ||||
| $hashes = explode("\n", trim($logs)); | $hashes = explode("\n", trim($logs)); | ||||
| // Remove the merge commit. | // Remove the merge commit. | ||||
| $hashes = array_diff($hashes, array($commit)); | $hashes = array_diff($hashes, array($commit)); | ||||
| return DiffusionQuery::loadHistoryForCommitIdentifiers( | $history = DiffusionQuery::loadHistoryForCommitIdentifiers( | ||||
| $hashes, | $hashes, | ||||
| $drequest); | $drequest); | ||||
| return mpull($history, 'toDictionary'); | |||||
| } | } | ||||
| } | } | ||||