# HG changeset patch # User Thomas Arendsen Hein # Date 1142191385 -3600 # Node ID 4c53aaf2d153e0cac252d313df5a6f5d5d1228cd # Parent 6569651a4f1e8ce80116b15f8e459f59459c4ded Allow symbolic path names in global -R/--repository parameter. diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -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']: