mercurial/url.py
changeset 15008 d0424f39984c
parent 14964 376c32a5ccdc
parent 15005 4a43e23b8c55
child 15027 1e45b92f4fb2
equal deleted inserted replaced
15003:a31b8e03af28 15008:d0424f39984c
    23         user, passwd = authinfo
    23         user, passwd = authinfo
    24         if user and passwd:
    24         if user and passwd:
    25             self._writedebug(user, passwd)
    25             self._writedebug(user, passwd)
    26             return (user, passwd)
    26             return (user, passwd)
    27 
    27 
    28         if not user:
    28         if not user or not passwd:
    29             res = httpconnectionmod.readauthforuri(self.ui, authuri)
    29             res = httpconnectionmod.readauthforuri(self.ui, authuri)
    30             if res:
    30             if res:
    31                 group, auth = res
    31                 group, auth = res
    32                 user, passwd = auth.get('username'), auth.get('password')
    32                 user, passwd = auth.get('username'), auth.get('password')
    33                 self.ui.debug("using auth.%s.* for authentication\n" % group)
    33                 self.ui.debug("using auth.%s.* for authentication\n" % group)