]> Cypherpunks repositories - gostls13.git/commitdiff
codereview.py: fix for compatibility with hg >=1.4.3
authorAndrew Gerrand <adg@golang.org>
Tue, 2 Mar 2010 22:03:31 +0000 (09:03 +1100)
committerAndrew Gerrand <adg@golang.org>
Tue, 2 Mar 2010 22:03:31 +0000 (09:03 +1100)
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

index a33ea38c061c66b06beb23689e6877a165674c7c..5e7e922407c7d45c8cd74fda977f4b579f41611f 100644 (file)
@@ -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