Differential D16460 Diff 39599 src/applications/diffusion/conduit/DiffusionDiffQueryConduitAPIMethod.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/conduit/DiffusionDiffQueryConduitAPIMethod.php
| Show First 20 Lines • Show All 201 Lines • ▼ Show 20 Lines | private function getGitOrMercurialResult(ConduitAPIRequest $request) { | ||||
| $effective_commit = $this->getEffectiveCommit($request); | $effective_commit = $this->getEffectiveCommit($request); | ||||
| if (!$effective_commit) { | if (!$effective_commit) { | ||||
| return $this->getEmptyResult(1); | return $this->getEmptyResult(1); | ||||
| } | } | ||||
| $raw_query = DiffusionRawDiffQuery::newFromDiffusionRequest($drequest) | $raw_query = DiffusionRawDiffQuery::newFromDiffusionRequest($drequest) | ||||
| ->setAnchorCommit($effective_commit); | ->setAnchorCommit($effective_commit); | ||||
| $raw_diff = $raw_query->loadRawDiff(); | $raw_diff = $raw_query->executeInline(); | ||||
| if (!$raw_diff) { | if (!$raw_diff) { | ||||
| return $this->getEmptyResult(2); | return $this->getEmptyResult(2); | ||||
| } | } | ||||
| $parser = $this->getDefaultParser(); | $parser = $this->getDefaultParser(); | ||||
| $changes = $parser->parseDiff($raw_diff); | $changes = $parser->parseDiff($raw_diff); | ||||
| return $changes; | return $changes; | ||||
| Show All 21 Lines | |||||