Differential D8100 Diff 18349 src/applications/diffusion/controller/DiffusionRepositoryController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/controller/DiffusionRepositoryController.php
Show First 20 Lines • Show All 545 Lines • ▼ Show 20 Lines | private function renderCloneCommand( | ||||
require_celerity_resource('diffusion-icons-css'); | require_celerity_resource('diffusion-icons-css'); | ||||
Javelin::initBehavior('select-on-click'); | Javelin::initBehavior('select-on-click'); | ||||
switch ($repository->getVersionControlSystem()) { | switch ($repository->getVersionControlSystem()) { | ||||
case PhabricatorRepositoryType::REPOSITORY_TYPE_GIT: | case PhabricatorRepositoryType::REPOSITORY_TYPE_GIT: | ||||
$command = csprintf( | $command = csprintf( | ||||
'git clone %s', | 'git clone %R', | ||||
$uri); | $uri); | ||||
break; | break; | ||||
case PhabricatorRepositoryType::REPOSITORY_TYPE_MERCURIAL: | case PhabricatorRepositoryType::REPOSITORY_TYPE_MERCURIAL: | ||||
$command = csprintf( | $command = csprintf( | ||||
'hg clone %s', | 'hg clone %R', | ||||
$uri); | $uri); | ||||
break; | break; | ||||
case PhabricatorRepositoryType::REPOSITORY_TYPE_SVN: | case PhabricatorRepositoryType::REPOSITORY_TYPE_SVN: | ||||
$command = csprintf( | $command = csprintf( | ||||
'svn checkout %s %s', | 'svn checkout %R %R', | ||||
$uri, | $uri, | ||||
$repository->getCloneName()); | $repository->getCloneName()); | ||||
break; | break; | ||||
} | } | ||||
$input = javelin_tag( | $input = javelin_tag( | ||||
'input', | 'input', | ||||
array( | array( | ||||
Show All 39 Lines |