From e678afa891b6cd466eeb5f05ad4eb3800ec1dc6b Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Wed, 3 Mar 2010 09:03:31 +1100 Subject: [PATCH] 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 --- lib/codereview/codereview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/codereview/codereview.py b/lib/codereview/codereview.py index a33ea38c06..5e7e922407 100644 --- a/lib/codereview/codereview.py +++ b/lib/codereview/codereview.py @@ -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