Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/url.py @ 10794:1148a968a070 stable
url: expand path in auth filenames
author | Benoit Allard <benoit@aeteurope.nl> |
---|---|
date | Fri, 26 Mar 2010 21:37:18 +0100 |
parents | fc5908d01ed7 |
children | e4f911ce21de |
comparison
equal
deleted
inserted
replaced
10793:16df09a54113 | 10794:1148a968a070 |
---|---|
143 if '.' not in key: | 143 if '.' not in key: |
144 self.ui.warn(_("ignoring invalid [auth] key '%s'\n") % key) | 144 self.ui.warn(_("ignoring invalid [auth] key '%s'\n") % key) |
145 continue | 145 continue |
146 group, setting = key.split('.', 1) | 146 group, setting = key.split('.', 1) |
147 gdict = config.setdefault(group, dict()) | 147 gdict = config.setdefault(group, dict()) |
148 if setting in ('cert', 'key'): | |
149 val = util.expandpath(val) | |
148 gdict[setting] = val | 150 gdict[setting] = val |
149 | 151 |
150 # Find the best match | 152 # Find the best match |
151 scheme, hostpath = uri.split('://', 1) | 153 scheme, hostpath = uri.split('://', 1) |
152 bestlen = 0 | 154 bestlen = 0 |