Differential D10585 Diff 25583 src/applications/diffusion/conduit/DiffusionGetRecentCommitsByPathConduitAPIMethod.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/conduit/DiffusionGetRecentCommitsByPathConduitAPIMethod.php
| Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | $history_result = DiffusionQuery::callConduitWithDiffusionRequest( | ||||
| $drequest, | $drequest, | ||||
| 'diffusion.historyquery', | 'diffusion.historyquery', | ||||
| array( | array( | ||||
| 'commit' => $drequest->getCommit(), | 'commit' => $drequest->getCommit(), | ||||
| 'path' => $drequest->getPath(), | 'path' => $drequest->getPath(), | ||||
| 'offset' => 0, | 'offset' => 0, | ||||
| 'limit' => $limit, | 'limit' => $limit, | ||||
| 'needDirectChanges' => true, | 'needDirectChanges' => true, | ||||
| 'needChildChanges' => true)); | 'needChildChanges' => true, | ||||
| )); | |||||
| $history = DiffusionPathChange::newFromConduit( | $history = DiffusionPathChange::newFromConduit( | ||||
| $history_result['pathChanges']); | $history_result['pathChanges']); | ||||
| $raw_commit_identifiers = mpull($history, 'getCommitIdentifier'); | $raw_commit_identifiers = mpull($history, 'getCommitIdentifier'); | ||||
| $result = array(); | $result = array(); | ||||
| foreach ($raw_commit_identifiers as $id) { | foreach ($raw_commit_identifiers as $id) { | ||||
| $result[] = 'r'.$request->getValue('callsign').$id; | $result[] = 'r'.$request->getValue('callsign').$id; | ||||
| } | } | ||||
| return $result; | return $result; | ||||
| } | } | ||||
| } | } | ||||