[PATCH] expand paths in aliases

Alexander Solovyov piranha at piranha.org.ua
Sat Mar 27 06:40:16 CDT 2010


# HG changeset patch
# User Alexander Solovyov <piranha at piranha.org.ua>
# Date 1269689985 -7200
# Node ID b72de93512d376d48f075882b68ab169bc023a45
# Parent  bd36e5c0ccb110c11bf0bda72ea77171d6844f18
expand paths in aliases

diff --git a/mercurial/dispatch.py b/mercurial/dispatch.py
--- a/mercurial/dispatch.py
+++ b/mercurial/dispatch.py
@@ -194,6 +194,7 @@ class cmdalias(object):
 
         args = shlex.split(self.definition)
         cmd = args.pop(0)
+        args = map(util.expandpath, args)
 
         try:
             tableentry = cmdutil.findcmd(cmd, cmdtable, False)[1]


More information about the Mercurial-devel mailing list