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:
parent
60918c9a9e
commit
e994e69a6f
1 changed files with 8 additions and 4 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue