Show More
@@ -233,8 +233,12 b' class HTTPPasswordHandler(object):' | |||||
233 | local_passwordmgr = passwordmgr(local_ui) |
|
233 | local_passwordmgr = passwordmgr(local_ui) | |
234 | auth_token = local_passwordmgr.readauthtoken(base_url) |
|
234 | auth_token = local_passwordmgr.readauthtoken(base_url) | |
235 | except AttributeError: |
|
235 | except AttributeError: | |
236 |
|
|
236 | try: | |
237 | from mercurial.url import readauthforuri |
|
237 | # hg 1.8 | |
|
238 | from mercurial.url import readauthforuri | |||
|
239 | except ImportError: | |||
|
240 | # hg 1.9 | |||
|
241 | from mercurial.httpconnection import readauthforuri | |||
238 | res = readauthforuri(local_ui, base_url) |
|
242 | res = readauthforuri(local_ui, base_url) | |
239 | if res: |
|
243 | if res: | |
240 | group, auth_token = res |
|
244 | group, auth_token = res |
General Comments 0
You need to be logged in to leave comments.
Login now