Differential D21510 Diff 51196 src/applications/diffusion/conduit/DiffusionLastModifiedQueryConduitAPIMethod.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/conduit/DiffusionLastModifiedQueryConduitAPIMethod.php
| Show All 28 Lines | protected function getGitResult(ConduitAPIRequest $request) { | ||||
| $results = $this->loadCommitsFromCache($paths); | $results = $this->loadCommitsFromCache($paths); | ||||
| foreach ($paths as $path => $commit) { | foreach ($paths as $path => $commit) { | ||||
| if (array_key_exists($path, $results)) { | if (array_key_exists($path, $results)) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| list($hash) = $repository->execxLocalCommand( | list($hash) = $repository->execxLocalCommand( | ||||
| 'log -n1 --format=%%H %s -- %s', | 'log -n1 --format=%%H %s -- %s', | ||||
| $commit, | gitsprintf('%s', $commit), | ||||
| $path); | $path); | ||||
| $results[$path] = trim($hash); | $results[$path] = trim($hash); | ||||
| } | } | ||||
| return $results; | return $results; | ||||
| } | } | ||||
| protected function getSVNResult(ConduitAPIRequest $request) { | protected function getSVNResult(ConduitAPIRequest $request) { | ||||
| ▲ Show 20 Lines • Show All 123 Lines • Show Last 20 Lines | |||||