[PATCH keyring] readauthforuri has been moved into new httpconnection module
Steve Borho
steve at borho.org
Mon May 9 00:00:58 CDT 2011
# HG changeset patch
# User Steve Borho <steve at borho.org>
# Date 1304917199 18000
# Node ID a6e455012d1406f694365155941aa7dc3dad5d11
# Parent 04cd5a463bf754f5ee2d73d2238fa2c42038e7ce
readauthforuri has been moved into new httpconnection module
diff -r 04cd5a463bf7 -r a6e455012d14 mercurial_keyring.py
--- a/mercurial_keyring.py Tue Feb 15 08:03:27 2011 +0100
+++ b/mercurial_keyring.py Sun May 08 23:59:59 2011 -0500
@@ -233,8 +233,12 @@
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
More information about the Mercurial-devel
mailing list