mirror of
https://we.phorge.it/source/phorge.git
synced 2025-02-18 01:38:39 +01:00
Use binary_safe_diff from arcanist
Summary: binary_safe_diff is needed in arcanist too. Moved it over to arcanist. See D2915. Test Plan: diffusion page rendered correctly on binary file. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D2916
This commit is contained in:
parent
dcf3a31944
commit
61b79b5359
2 changed files with 2 additions and 8 deletions
|
@ -1,6 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
diff "$@"
|
|
||||||
if [ "$?" = "2" ]; then
|
|
||||||
exit 1
|
|
||||||
fi
|
|
|
@ -23,11 +23,11 @@ final class DiffusionSvnRawDiffQuery extends DiffusionRawDiffQuery {
|
||||||
$repository = $drequest->getRepository();
|
$repository = $drequest->getRepository();
|
||||||
|
|
||||||
$commit = $drequest->getCommit();
|
$commit = $drequest->getCommit();
|
||||||
$root = phutil_get_library_root('phabricator');
|
$arc_root = phutil_get_library_root('arcanist');
|
||||||
|
|
||||||
$future = $repository->getRemoteCommandFuture(
|
$future = $repository->getRemoteCommandFuture(
|
||||||
'diff --diff-cmd %s -x -U%d -c %d %s%s@',
|
'diff --diff-cmd %s -x -U%d -c %d %s%s@',
|
||||||
$root.'/../scripts/repository/binary_safe_diff.sh',
|
$arc_root.'/../scripts/repository/binary_safe_diff.sh',
|
||||||
$this->getLinesOfContext(),
|
$this->getLinesOfContext(),
|
||||||
$commit,
|
$commit,
|
||||||
$repository->getRemoteURI(),
|
$repository->getRemoteURI(),
|
||||||
|
|
Loading…
Add table
Reference in a new issue