Differential D16460 Diff 39599 src/applications/diffusion/query/rawdiff/DiffusionSvnRawDiffQuery.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/query/rawdiff/DiffusionSvnRawDiffQuery.php
| <?php | <?php | ||||
| final class DiffusionSvnRawDiffQuery extends DiffusionRawDiffQuery { | final class DiffusionSvnRawDiffQuery extends DiffusionRawDiffQuery { | ||||
| protected function executeQuery() { | protected function newQueryFuture() { | ||||
| $drequest = $this->getRequest(); | $drequest = $this->getRequest(); | ||||
| $repository = $drequest->getRepository(); | $repository = $drequest->getRepository(); | ||||
| $commit = $this->getAnchorCommit(); | $commit = $this->getAnchorCommit(); | ||||
| $arc_root = phutil_get_library_root('arcanist'); | $arc_root = phutil_get_library_root('arcanist'); | ||||
| $against = $this->getAgainstCommit(); | $against = $this->getAgainstCommit(); | ||||
| if ($against === null) { | if ($against === null) { | ||||
| $against = $commit - 1; | $against = $commit - 1; | ||||
| } | } | ||||
| $future = $repository->getRemoteCommandFuture( | $future = $repository->getRemoteCommandFuture( | ||||
| 'diff --diff-cmd %s -x -U%d -r %d:%d %s', | 'diff --diff-cmd %s -x -U%d -r %d:%d %s', | ||||
| $arc_root.'/../scripts/repository/binary_safe_diff.sh', | $arc_root.'/../scripts/repository/binary_safe_diff.sh', | ||||
| $this->getLinesOfContext(), | $this->getLinesOfContext(), | ||||
| $against, | $against, | ||||
| $commit, | $commit, | ||||
| $repository->getSubversionPathURI($drequest->getPath())); | $repository->getSubversionPathURI($drequest->getPath())); | ||||
| $this->configureFuture($future); | return $future; | ||||
| list($raw_diff) = $future->resolvex(); | |||||
| return $raw_diff; | |||||
| } | } | ||||
| } | } | ||||