Differential D16417 Diff 39574 src/applications/differential/controller/DifferentialRevisionViewController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/controller/DifferentialRevisionViewController.php
Show First 20 Lines • Show All 233 Lines • ▼ Show 20 Lines | $revision_warnings = $this->buildRevisionWarnings( | ||||
$handles); | $handles); | ||||
$info_view = null; | $info_view = null; | ||||
if ($revision_warnings) { | if ($revision_warnings) { | ||||
$info_view = id(new PHUIInfoView()) | $info_view = id(new PHUIInfoView()) | ||||
->setSeverity(PHUIInfoView::SEVERITY_WARNING) | ->setSeverity(PHUIInfoView::SEVERITY_WARNING) | ||||
->setErrors($revision_warnings); | ->setErrors($revision_warnings); | ||||
} | } | ||||
$this->loadHarbormasterBuilds($diffs); | |||||
$detail_diffs = array_select_keys( | $detail_diffs = array_select_keys( | ||||
$diffs, | $diffs, | ||||
array($diff_vs, $target->getID())); | array($diff_vs, $target->getID())); | ||||
$detail_diffs = mpull($detail_diffs, null, 'getPHID'); | $detail_diffs = mpull($detail_diffs, null, 'getPHID'); | ||||
$this->loadHarbormasterData($detail_diffs); | $this->loadHarbormasterData($detail_diffs); | ||||
$diff_detail_box = $this->buildDiffDetailView( | $diff_detail_box = $this->buildDiffDetailView( | ||||
▲ Show 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | public function handleRequest(AphrontRequest $request) { | ||||
$other_view = null; | $other_view = null; | ||||
if ($other_revisions) { | if ($other_revisions) { | ||||
$other_view = $this->renderOtherRevisions($other_revisions); | $other_view = $this->renderOtherRevisions($other_revisions); | ||||
} | } | ||||
$toc_view = $this->buildTableOfContents( | $toc_view = $this->buildTableOfContents( | ||||
$changesets, | $changesets, | ||||
$visible_changesets, | $visible_changesets, | ||||
$target->loadCoverageMap($viewer)); | $target->loadCoverageMap()); | ||||
$tab_group = id(new PHUITabGroupView()) | $tab_group = id(new PHUITabGroupView()) | ||||
->addTab( | ->addTab( | ||||
id(new PHUITabView()) | id(new PHUITabView()) | ||||
->setName(pht('Files')) | ->setName(pht('Files')) | ||||
->setKey('files') | ->setKey('files') | ||||
->appendChild($toc_view)) | ->appendChild($toc_view)) | ||||
->addTab( | ->addTab( | ||||
▲ Show 20 Lines • Show All 900 Lines • Show Last 20 Lines |