changeset 1894:4c53aaf2d153

Allow symbolic path names in global -R/--repository parameter.
author Thomas Arendsen Hein <thomas@intevation.de>
date Sun, 12 Mar 2006 20:23:05 +0100
parents 6569651a4f1e
children d7c038e805e9 acce3f7e1779
files mercurial/commands.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Sun Mar 12 20:13:58 2006 +0100
+++ b/mercurial/commands.py	Sun Mar 12 20:23:05 2006 +0100
@@ -2649,7 +2649,8 @@
 }
 
 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 @@
                     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']: