1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-13 02:12:41 +01:00

Limit the amount of damage we cause to ArcanistDiffParser.

This commit is contained in:
epriestley 2011-03-30 19:32:51 -07:00
parent 60918c9a9e
commit e994e69a6f

View file

@ -103,10 +103,14 @@ final class DiffusionSvnDiffQuery extends DiffusionDiffQuery {
$parser = new ArcanistDiffParser(); $parser = new ArcanistDiffParser();
$parser->setDetectBinaryFiles(true); $parser->setDetectBinaryFiles(true);
$change = $parser->parseDiffusionPathChangesAndRawDiff( $arcanist_changes = DiffusionPathChange::convertToArcanistChanges(
$drequest->getPath(), $path_changes);
$path_changes,
$raw_diff); $parser->setChanges($arcanist_changes);
$parser->forcePath($path->getPath());
$changes = $parser->parseDiff($raw_diff);
$change = $changes[$path->getPath()];
$diff = DifferentialDiff::newFromRawChanges(array($change)); $diff = DifferentialDiff::newFromRawChanges(array($change));
$changesets = $diff->getChangesets(); $changesets = $diff->getChangesets();