mirror of
https://github.com/golang/go
synced 2024-11-21 13:34:39 -07:00
codereview.py: fix for compatibility with hg >=1.4.3
hg.parseurl now returns a two-value tuple; codereview.py expected 3. Changed to merely take the first return value. R=rsc, iant CC=golang-dev https://golang.org/cl/223087
This commit is contained in:
parent
adf1e4c5fd
commit
e678afa891
@ -583,7 +583,7 @@ def getremote(ui, repo, opts):
|
||||
# save $http_proxy; creating the HTTP repo object will
|
||||
# delete it in an attempt to "help"
|
||||
proxy = os.environ.get('http_proxy')
|
||||
source, _, _ = hg.parseurl(ui.expandpath("default"), None)
|
||||
source = hg.parseurl(ui.expandpath("default"), None)[0]
|
||||
other = hg.repository(cmdutil.remoteui(repo, opts), source)
|
||||
if proxy is not None:
|
||||
os.environ['http_proxy'] = proxy
|
||||
|
Loading…
Reference in New Issue
Block a user