id = $data['id']; } public function processRequest() { $diff = id(new DifferentialDiff())->load($this->id); if (!$diff) { return new Aphront404Response(); } $action_panel = new AphrontPanelView(); $action_panel->setHeader('Preview Diff'); $action_panel->setWidth(AphrontPanelView::WIDTH_WIDE); $action_panel->appendChild( '
Review the diff for correctness. '. 'When you are satisfied, either create a new revision '. 'or update an existing revision.'); $action_form = new AphrontFormView(); $action_form ->setAction('/differential/revision/edit/') ->appendChild( id(new AphrontFormSelectControl()) ->setLabel('Attach To') ->setName('revisionID') ->setValue('') ->setOptions(array( '' => "Create a new Revision...", ))) ->appendChild( id(new AphrontFormSubmitControl()) ->setValue('Continue')); $action_panel->appendChild($action_form); $changesets = $diff->loadChangesets(); $changesets = msort($changesets, 'getSortKey'); $table_of_contents = id(new DifferentialDiffTableOfContentsView()) ->setChangesets($changesets); $details = id(new DifferentialChangesetListView()) ->setChangesets($changesets); return $this->buildStandardPageResponse( '