Mercurial > public > mercurial-scm > hg
comparison mercurial/cmdutil.py @ 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 | 5ddde896a19d |
children | 8d5f5122a732 |
comparison
equal
deleted
inserted
replaced
10952:6c2c766afefe | 10953:f1250e2e8fd1 |
---|---|
127 # copy bundle-specific options | 127 # copy bundle-specific options |
128 r = src.config('bundle', 'mainreporoot') | 128 r = src.config('bundle', 'mainreporoot') |
129 if r: | 129 if r: |
130 dst.setconfig('bundle', 'mainreporoot', r) | 130 dst.setconfig('bundle', 'mainreporoot', r) |
131 | 131 |
132 # copy auth section settings | 132 # copy auth and http_proxy section settings |
133 for key, val in src.configitems('auth'): | 133 for sect in ('auth', 'http_proxy'): |
134 dst.setconfig('auth', key, val) | 134 for key, val in src.configitems(sect): |
135 dst.setconfig(sect, key, val) | |
135 | 136 |
136 return dst | 137 return dst |
137 | 138 |
138 def revpair(repo, revs): | 139 def revpair(repo, revs): |
139 '''return pair of nodes, given list of revisions. second item can | 140 '''return pair of nodes, given list of revisions. second item can |