Mercurial > hg
changeset 10953:f1250e2e8fd1 stable
remoteui: copy http_proxy settings
http_proxy settings of current repo's .hg/hgrc should be available
on remoteui, so that the httprepo can use them when pulling via http.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Thu, 08 Apr 2010 00:13:33 +0900 |
parents | 6c2c766afefe |
children | 33119d0252c1 |
files | mercurial/cmdutil.py |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Wed Apr 07 02:41:22 2010 +0200 +++ b/mercurial/cmdutil.py Thu Apr 08 00:13:33 2010 +0900 @@ -129,9 +129,10 @@ if r: dst.setconfig('bundle', 'mainreporoot', r) - # copy auth section settings - for key, val in src.configitems('auth'): - dst.setconfig('auth', key, val) + # copy auth and http_proxy section settings + for sect in ('auth', 'http_proxy'): + for key, val in src.configitems(sect): + dst.setconfig(sect, key, val) return dst