@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
1<?php
2
3final class DiffusionSvnRawDiffQuery extends DiffusionRawDiffQuery {
4
5 protected function newQueryFuture() {
6 $drequest = $this->getRequest();
7 $repository = $drequest->getRepository();
8
9 $commit = $this->getAnchorCommit();
10 $arc_root = phutil_get_library_root('arcanist');
11
12 $against = $this->getAgainstCommit();
13 if ($against === null) {
14 $against = $commit - 1;
15 }
16
17 $future = $repository->getRemoteCommandFuture(
18 'diff --diff-cmd %s -x -U%d -r %d:%d %s',
19 $arc_root.'/../scripts/repository/binary_safe_diff.sh',
20 $this->getLinesOfContext(),
21 $against,
22 $commit,
23 $repository->getSubversionPathURI($drequest->getPath()));
24
25 return $future;
26 }
27
28}