Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/data/DiffusionPathChange.php
Show First 20 Lines • Show All 165 Lines • ▼ Show 20 Lines | return array( | ||||
'path' => $this->getPath(), | 'path' => $this->getPath(), | ||||
'commitIdentifier' => $this->getCommitIdentifier(), | 'commitIdentifier' => $this->getCommitIdentifier(), | ||||
'commit' => $commit_dict, | 'commit' => $commit_dict, | ||||
'commitData' => $commit_data_dict, | 'commitData' => $commit_data_dict, | ||||
'fileType' => $this->getFileType(), | 'fileType' => $this->getFileType(), | ||||
'changeType' => $this->getChangeType(), | 'changeType' => $this->getChangeType(), | ||||
'targetPath' => $this->getTargetPath(), | 'targetPath' => $this->getTargetPath(), | ||||
'targetCommitIdentifier' => $this->getTargetCommitIdentifier(), | 'targetCommitIdentifier' => $this->getTargetCommitIdentifier(), | ||||
'awayPaths' => $this->getAwayPaths()); | 'awayPaths' => $this->getAwayPaths(), | ||||
); | |||||
} | } | ||||
public static function newFromConduit(array $dicts) { | public static function newFromConduit(array $dicts) { | ||||
$results = array(); | $results = array(); | ||||
foreach ($dicts as $dict) { | foreach ($dicts as $dict) { | ||||
$commit = PhabricatorRepositoryCommit::newFromDictionary($dict['commit']); | $commit = PhabricatorRepositoryCommit::newFromDictionary($dict['commit']); | ||||
$commit_data = | $commit_data = | ||||
PhabricatorRepositoryCommitData::newFromDictionary( | PhabricatorRepositoryCommitData::newFromDictionary( | ||||
Show All 16 Lines |