Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/view/DiffusionHistoryView.php
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | abstract class DiffusionHistoryView extends DiffusionView { | ||||
| private function newRevisionMap() { | private function newRevisionMap() { | ||||
| $history = $this->history; | $history = $this->history; | ||||
| $commits = array(); | $commits = array(); | ||||
| foreach ($history as $item) { | foreach ($history as $item) { | ||||
| $commit = $item->getCommit(); | $commit = $item->getCommit(); | ||||
| if ($commit) { | if ($commit) { | ||||
| // NOTE: The "commit" objects in the history list may be undiscovered, | |||||
| // and thus not yet have PHIDs. Only load data for commits with PHIDs. | |||||
| if (!$commit->getPHID()) { | |||||
| continue; | |||||
| } | |||||
| $commits[] = $commit; | $commits[] = $commit; | ||||
| } | } | ||||
| } | } | ||||
| return DiffusionCommitRevisionQuery::loadRevisionMapForCommits( | return DiffusionCommitRevisionQuery::loadRevisionMapForCommits( | ||||
| $this->getViewer(), | $this->getViewer(), | ||||
| $commits); | $commits); | ||||
| } | } | ||||
| } | } | ||||