diff mercurial/dirstate.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 bc19a0b04e83
children e2b1de5fee04
line wrap: on
line diff
--- a/mercurial/dirstate.py	Sat Oct 17 15:40:34 2009 +0200
+++ b/mercurial/dirstate.py	Mon Oct 19 22:19:28 2009 +0300
@@ -100,7 +100,7 @@
         files = [self._join('.hgignore')]
         for name, path in self._ui.configitems("ui"):
             if name == 'ignore' or name.startswith('ignore.'):
-                files.append(os.path.expanduser(path))
+                files.append(util.expandpath(path))
         return ignore.ignore(self._root, files, self._ui.warn)
 
     @propertycache