1
0
mirror of https://github.com/golang/go synced 2024-11-21 19:34:46 -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:
Andrew Gerrand 2010-03-03 09:03:31 +11:00
parent adf1e4c5fd
commit e678afa891

View File

@ -583,7 +583,7 @@ def getremote(ui, repo, opts):
# save $http_proxy; creating the HTTP repo object will # save $http_proxy; creating the HTTP repo object will
# delete it in an attempt to "help" # delete it in an attempt to "help"
proxy = os.environ.get('http_proxy') 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) other = hg.repository(cmdutil.remoteui(repo, opts), source)
if proxy is not None: if proxy is not None:
os.environ['http_proxy'] = proxy os.environ['http_proxy'] = proxy