Allow DocumentEngine to elect into diff construction

Summary:
Ref T13425. Allow DocumentEngines to claim they can produce diffs. If both sides of a change can be diffed by the same document engine and it can produce diffs, have it diff them.

This has no impact on runtime behavior because no upstream engine elects into diff generation yet.

Test Plan: Loaded some revisions, nothing broke.

Maniphest Tasks: T13425

Differential Revision: https://secure.phabricator.com/D20830
This commit is contained in:
epriestley
2019-09-23 10:54:16 -07:00
parent 06edcf2709
commit a73f592d7d
4 changed files with 105 additions and 0 deletions

View File

@@ -166,6 +166,7 @@ final class DifferentialChangesetViewController extends DifferentialController {
DifferentialChangesetParser::parseRangeSpecification($spec);
$parser = id(new DifferentialChangesetParser())
->setViewer($viewer)
->setCoverage($coverage)
->setChangeset($changeset)
->setRenderingReference($rendering_reference)