[PATCH] url:expand path in auth filenames

Benoît Allard benoit at aeteurope.nl
Tue Mar 30 11:52:35 CDT 2010


Anyone wants to look at that ?

That's handy if you have in your hgrc

[auth]
hg.cert=~/credentials/me.crt
hg.key=~/credentials/me.key

Benoît Allard wrote:
> # HG changeset patch
> # User Benoit Allard <benoit at aeteurope.nl>
> # Date 1269635838 -3600
> # Node ID 4bd110fcacaacefc6fa687003d36a4cc37bc1da1
> # Parent  d70ada7e987d03bd5f47a5ddd9e16aaf3343813f
> url: expand path in auth filenames
> 
> diff -r d70ada7e987d -r 4bd110fcacaa mercurial/url.py
> --- a/mercurial/url.py    Wed Mar 24 19:44:53 2010 +0100
> +++ 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
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 6031 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20100330/31e6affa/attachment.bin>


More information about the Mercurial-devel mailing list