Opened 13 years ago
Closed 13 years ago
#30199 closed defect (fixed)
Mercurial 1.9 broken, cannot import readauthforuri
Reported by: | m@… | Owned by: | deric@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.9.2 |
Keywords: | Cc: | pixilla (Bradley Giesbrecht) | |
Port: | mercurial |
Description
I upgraded to Mercurial 1.9, unfortunately pull and push does not work anymore:
$ hg pull abort: cannot import name readauthforuri!
Change History (8)
comment:1 Changed 13 years ago by m@…
comment:2 Changed 13 years ago 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@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...
comment:3 Changed 13 years ago by m@…
I created Ticket #30200 which refers to the correct port for this issue.
comment:4 Changed 13 years ago by jmroot (Joshua Root)
Keywords: | mercurial push pull import readauthforuri removed |
---|---|
Owner: | changed from macports-tickets@… to deric@… |
Port: | @1.9 (devel python) removed |
comment:6 Changed 13 years ago by anddam (Andrea D'Amore)
Please check #30200 and confirm this ticket is fixed.
comment:8 Changed 13 years ago by jmroot (Joshua Root)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Maybe related to py26-mercurial_keyring?