Summary: These are meaningless / unreachable after D1491 and nonsense after
D1582. Depends on D1579.
Test Plan: Grepped for 'sourcePath' references.
Reviewers: arice, btrahan
Reviewed By: arice
CC: aran, epriestley
Maniphest Tasks: T838
Differential Revision: https://secure.phabricator.com/D1584
protected $id;
protected $name;
protected $statusName;
- protected $sourcePath;
public static function newFromDictionary(array $dictionary) {
$ref = new ArcanistDifferentialRevisionRef();
$ref->id = $dictionary['id'];
$ref->name = $dictionary['name'];
$ref->statusName = $dictionary['statusName'];
- $ref->sourcePath = $dictionary['sourcePath'];
return $ref;
}
return $this->statusName;
}
- public function getSourcePath() {
- return $this->sourcePath;
- }
-
}
$repository_api = $this->getRepositoryAPI();
- $candidates = array();
- $cur_path = $repository_api->getPath();
- foreach ($revisions as $revision) {
- $source_path = $revision->getSourcePath();
- if ($source_path == $cur_path) {
- $candidates[] = $revision;
- }
- }
+ $candidates = $revisions;
if (count($candidates) == 1) {
$candidate = reset($candidates);