Mercurial > public > mercurial-scm > hg-stable
diff mercurial/ui.py @ 5943:ffaf2419de44
Ensure that absolutized paths from hgrc do not contain ../ segments.
author | Jesse Glick <jesse.glick@sun.com> |
---|---|
date | Tue, 08 Jan 2008 22:40:51 -0500 |
parents | bc475d1f74ca |
children | 8e3dc3de7e73 |
line wrap: on
line diff
--- a/mercurial/ui.py Fri Jan 25 16:18:49 2008 +0100 +++ b/mercurial/ui.py Tue Jan 08 22:40:51 2008 -0500 @@ -204,7 +204,8 @@ pathsitems = items for n, path in pathsitems: if path and "://" not in path and not os.path.isabs(path): - cdata.set("paths", n, os.path.join(root, path)) + cdata.set("paths", n, + os.path.normpath(os.path.join(root, path))) # update verbosity/interactive/report_untrusted settings if section is None or section == 'ui':