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:
@@ -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(),
|
||||||
|
|||||||
Reference in New Issue
Block a user