# HG changeset patch # User Yuya Nishihara # Date 2010-04-07 15:13:33 # Node ID f1250e2e8fd1b132bf3c034543daa821b6021362 # Parent 6c2c766afefe574884af308ffdbf50f95bbe1827 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. diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py --- a/mercurial/cmdutil.py +++ b/mercurial/cmdutil.py @@ -129,9 +129,10 @@ def remoteui(src, opts): 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