diff mercurial/extensions.py @ 9610:d78fe60f6bda

make path expanding more consistent This expands ~user and $FOO constructs in ui.ignore files, [defaults], [paths], extension paths, and HGRCPATH files.
author Alexander Solovyov <piranha@piranha.org.ua>
date Mon, 19 Oct 2009 22:19:28 +0300
parents 1c83938b6a8e
children e0eae93e6c67
line wrap: on
line diff
--- a/mercurial/extensions.py	Sat Oct 17 15:40:34 2009 +0200
+++ b/mercurial/extensions.py	Mon Oct 19 22:19:28 2009 +0300
@@ -30,7 +30,7 @@
 
 def loadpath(path, module_name):
     module_name = module_name.replace('.', '_')
-    path = os.path.expanduser(path)
+    path = util.expandpath(path)
     if os.path.isdir(path):
         # module/__init__.py style
         d, f = os.path.split(path.rstrip('/'))