Commits

Steve Borho committed 8263c0e

name argument added to readauthforuri() on Mercurial stable branch post 1.9

Comments (0)

Files changed (1)

mercurial_keyring.py

             except ImportError:
                 # hg 1.9
                 from mercurial.httpconnection import readauthforuri
-            res = readauthforuri(local_ui, base_url)
+            try:
+                res = readauthforuri(local_ui, base_url)
+            except:
+                res = readauthforuri(local_ui, base_url, '')
             if res:
                 group, auth_token = res
             else: