diff options
author | Andrew Gerrand <adg@golang.org> | 2010-03-03 09:03:31 +1100 |
---|---|---|
committer | Andrew Gerrand <adg@golang.org> | 2010-03-03 09:03:31 +1100 |
commit | 036940d1d390ed79ddee5bad597e7fda32ec31e8 (patch) | |
tree | fe2808b61bb1c26342860ba2779bc188bb2a6af9 /lib | |
parent | 92783d39ae0f9dfe3a1271999d2be787645ff3d0 (diff) | |
download | go-036940d1d390ed79ddee5bad597e7fda32ec31e8.tar.gz |
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
http://codereview.appspot.com/223087
Diffstat (limited to 'lib')
-rw-r--r-- | lib/codereview/codereview.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/codereview/codereview.py b/lib/codereview/codereview.py index a33ea38c0..5e7e92240 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 |