mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-14 02:42:40 +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 = 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();
|
||||||
|
|
Loading…
Reference in a new issue