##// END OF EJS Templates
Allow symbolic path names in global -R/--repository parameter.
Thomas Arendsen Hein -
r1894:4c53aaf2 default
parent child Browse files
Show More
@@ -2649,7 +2649,8 b' table = {'
2649 }
2649 }
2650
2650
2651 globalopts = [
2651 globalopts = [
2652 ('R', 'repository', '', _('repository root directory')),
2652 ('R', 'repository', '',
2653 _('repository root directory or symbolic path name')),
2653 ('', 'cwd', '', _('change working directory')),
2654 ('', 'cwd', '', _('change working directory')),
2654 ('y', 'noninteractive', None,
2655 ('y', 'noninteractive', None,
2655 _('do not prompt, assume \'yes\' for any required answers')),
2656 _('do not prompt, assume \'yes\' for any required answers')),
@@ -2840,7 +2841,7 b' def dispatch(args):'
2840 raise util.Abort('%s: %s' %
2841 raise util.Abort('%s: %s' %
2841 (options['cwd'], inst.strerror))
2842 (options['cwd'], inst.strerror))
2842
2843
2843 path = options["repository"] or ""
2844 path = u.expandpath(options["repository"]) or ""
2844 repo = path and hg.repository(u, path=path) or None
2845 repo = path and hg.repository(u, path=path) or None
2845
2846
2846 if options['help']:
2847 if options['help']:
General Comments 0
You need to be logged in to leave comments. Login now