Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/storage/PhabricatorRepository.php
Show First 20 Lines • Show All 698 Lines • ▼ Show 20 Lines | public function generateURI(array $params) { | ||||
$req_commit = false; | $req_commit = false; | ||||
$action = idx($params, 'action'); | $action = idx($params, 'action'); | ||||
switch ($action) { | switch ($action) { | ||||
case 'history': | case 'history': | ||||
case 'graph': | case 'graph': | ||||
case 'clone': | case 'clone': | ||||
case 'browse': | case 'browse': | ||||
case 'document': | |||||
case 'change': | case 'change': | ||||
case 'lastmodified': | case 'lastmodified': | ||||
case 'tags': | case 'tags': | ||||
case 'branches': | case 'branches': | ||||
case 'lint': | case 'lint': | ||||
case 'pathtree': | case 'pathtree': | ||||
case 'refs': | case 'refs': | ||||
case 'compare': | case 'compare': | ||||
▲ Show 20 Lines • Show All 62 Lines • ▼ Show 20 Lines | public function generateURI(array $params) { | ||||
} | } | ||||
$query = array(); | $query = array(); | ||||
switch ($action) { | switch ($action) { | ||||
case 'change': | case 'change': | ||||
case 'history': | case 'history': | ||||
case 'graph': | case 'graph': | ||||
case 'browse': | case 'browse': | ||||
case 'document': | |||||
case 'lastmodified': | case 'lastmodified': | ||||
case 'tags': | case 'tags': | ||||
case 'branches': | case 'branches': | ||||
case 'lint': | case 'lint': | ||||
case 'pathtree': | case 'pathtree': | ||||
case 'refs': | case 'refs': | ||||
$uri = $this->getPathURI("/{$action}/{$path}{$commit}{$line}"); | $uri = $this->getPathURI("/{$action}/{$path}{$commit}{$line}"); | ||||
break; | break; | ||||
▲ Show 20 Lines • Show All 1,864 Lines • Show Last 20 Lines |