mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
Allow symbolic path names in global -R/--repository parameter.
This commit is contained in:
parent
cb1befe216
commit
4f901cfb82
@ -2649,7 +2649,8 @@ table = {
|
||||
}
|
||||
|
||||
globalopts = [
|
||||
('R', 'repository', '', _('repository root directory')),
|
||||
('R', 'repository', '',
|
||||
_('repository root directory or symbolic path name')),
|
||||
('', 'cwd', '', _('change working directory')),
|
||||
('y', 'noninteractive', None,
|
||||
_('do not prompt, assume \'yes\' for any required answers')),
|
||||
@ -2840,7 +2841,7 @@ def dispatch(args):
|
||||
raise util.Abort('%s: %s' %
|
||||
(options['cwd'], inst.strerror))
|
||||
|
||||
path = options["repository"] or ""
|
||||
path = u.expandpath(options["repository"]) or ""
|
||||
repo = path and hg.repository(u, path=path) or None
|
||||
|
||||
if options['help']:
|
||||
|
Loading…
Reference in New Issue
Block a user