url: expand path in auth filenames stable
authorBenoit Allard <benoit@aeteurope.nl>
Fri, 26 Mar 2010 21:37:18 +0100
branchstable
changeset 10794 1148a968a070
parent 10793 16df09a54113
child 10795 8f4c95368313
child 10796 ce2ae8bf3ae3
url: expand path in auth filenames
mercurial/url.py
--- a/mercurial/url.py	Sat Mar 27 13:39:45 2010 +0200
+++ b/mercurial/url.py	Fri Mar 26 21:37:18 2010 +0100
@@ -145,6 +145,8 @@
                 continue
             group, setting = key.split('.', 1)
             gdict = config.setdefault(group, dict())
+            if setting in ('cert', 'key'):
+                val = util.expandpath(val)
             gdict[setting] = val
 
         # Find the best match