[MacPorts] #30199: Mercurial 1.9 broken, cannot import readauthforuri
MacPorts
noreply at macports.org
Fri Jul 15 01:09:20 PDT 2011
#30199: Mercurial 1.9 broken, cannot import readauthforuri
-------------------------------------------------------+--------------------
Reporter: m@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.9.2
Keywords: mercurial push pull import readauthforuri | Port: mercurial @1.9 (devel, python)
-------------------------------------------------------+--------------------
Comment(by m@…):
Macports installs mercurial_keyring version 0.4.4, version 0.4.5 contains
the following fix:
{{{
# HG changeset patch -- Bitbucket.org
# Project mercurial_keyring
# URL https://bitbucket.org/Mekk/mercurial_keyring/overview
# User Steve Borho <steve at borho.org>
# Date 1304917199 18000
# Node ID a6e455012d1406f694365155941aa7dc3dad5d11
# Parent 04cd5a463bf754f5ee2d73d2238fa2c42038e7ce
readauthforuri has been moved into new httpconnection module
--- a/mercurial_keyring.py
+++ b/mercurial_keyring.py
@@ -233,8 +233,12 @@ class HTTPPasswordHandler(object):
local_passwordmgr = passwordmgr(local_ui)
auth_token = local_passwordmgr.readauthtoken(base_url)
except AttributeError:
- # hg 1.8
- from mercurial.url import readauthforuri
+ try:
+ # hg 1.8
+ from mercurial.url import readauthforuri
+ except ImportError:
+ # hg 1.9
+ from mercurial.httpconnection import readauthforuri
res = readauthforuri(local_ui, base_url)
if res:
group, auth_token = res
}}}
I think the outdated keyring extension is the culprit...
--
Ticket URL: <https://trac.macports.org/ticket/30199#comment:2>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list