1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-22 23:02:41 +01:00

Support browsing '.' and default to it

Test Plan: Ran 'arc browse', 'arc browse .', 'arc browse main.py'.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley

CC: Korvin, epriestley, aran, avivey

Differential Revision: https://secure.phabricator.com/D8174
This commit is contained in:
Ben Alpert 2014-02-09 09:00:54 -08:00 committed by epriestley
parent c3fe03db08
commit 52d3cd1b4e

View file

@ -50,7 +50,7 @@ EOTEXT
'branch' => array( 'branch' => array(
'param' => 'branch_name', 'param' => 'branch_name',
'help' => 'help' =>
"Select branch name to view (On server). Defaults to 'master'." "Select branch name to view (on server). Defaults to 'master'."
), ),
'*' => 'paths', '*' => 'paths',
); );
@ -82,9 +82,11 @@ EOTEXT
$path = preg_replace('/:([0-9]+)$/', '$\1', $path); $path = preg_replace('/:([0-9]+)$/', '$\1', $path);
$full_path = Filesystem::resolvePath($path); $full_path = Filesystem::resolvePath($path);
$paths[$key] = Filesystem::readablePath( if ($full_path == $project_root) {
$full_path, $paths[$key] = '';
$project_root); } else {
$paths[$key] = Filesystem::readablePath($full_path, $project_root);
}
} }
if (!$paths) { if (!$paths) {