1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 08:52:39 +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->setDetectBinaryFiles(true);
$change = $parser->parseDiffusionPathChangesAndRawDiff(
$drequest->getPath(),
$path_changes,
$raw_diff);
$arcanist_changes = DiffusionPathChange::convertToArcanistChanges(
$path_changes);
$parser->setChanges($arcanist_changes);
$parser->forcePath($path->getPath());
$changes = $parser->parseDiff($raw_diff);
$change = $changes[$path->getPath()];
$diff = DifferentialDiff::newFromRawChanges(array($change));
$changesets = $diff->getChangesets();