1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-25 16:22:43 +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:
Jason Ge 2012-07-03 13:41:11 -07:00
parent dcf3a31944
commit 61b79b5359
2 changed files with 2 additions and 8 deletions

View file

@ -1,6 +0,0 @@
#!/bin/sh
diff "$@"
if [ "$?" = "2" ]; then
exit 1
fi

View file

@ -23,11 +23,11 @@ final class DiffusionSvnRawDiffQuery extends DiffusionRawDiffQuery {
$repository = $drequest->getRepository();
$commit = $drequest->getCommit();
$root = phutil_get_library_root('phabricator');
$arc_root = phutil_get_library_root('arcanist');
$future = $repository->getRemoteCommandFuture(
'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(),
$commit,
$repository->getRemoteURI(),