Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/storage/PhabricatorRepository.php
Show First 20 Lines • Show All 693 Lines • ▼ Show 20 Lines | /* -( Local Command Execution )-------------------------------------------- */ | ||||
public function generateURI(array $params) { | public function generateURI(array $params) { | ||||
$req_branch = false; | $req_branch = false; | ||||
$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 'browse': | case 'browse': | ||||
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': | ||||
▲ Show 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | public function generateURI(array $params) { | ||||
if (strlen($line)) { | if (strlen($line)) { | ||||
$line = '$'.phutil_escape_uri($line); | $line = '$'.phutil_escape_uri($line); | ||||
} | } | ||||
$query = array(); | $query = array(); | ||||
switch ($action) { | switch ($action) { | ||||
case 'change': | case 'change': | ||||
case 'history': | case 'history': | ||||
case 'graph': | |||||
case 'browse': | case 'browse': | ||||
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}"); | ||||
▲ Show 20 Lines • Show All 1,835 Lines • Show Last 20 Lines |