Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/storage/PhabricatorRepository.php
Show First 20 Lines • Show All 697 Lines • ▼ Show 20 Lines | 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 'graph': | ||||
case 'clone': | case 'clone': | ||||
case 'blame': | |||||
case 'browse': | case 'browse': | ||||
case 'document': | 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': | ||||
▲ Show 20 Lines • Show All 63 Lines • ▼ Show 20 Lines | 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 'graph': | ||||
case 'blame': | |||||
case 'browse': | case 'browse': | ||||
case 'document': | 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': | ||||
▲ Show 20 Lines • Show All 1,866 Lines • Show Last 20 Lines |