mercurial/url.py
branchstable
changeset 15005 4a43e23b8c55
parent 14244 e7525a555a64
child 15008 d0424f39984c
child 15025 0593e8f81c71
equal deleted inserted replaced
15004:d06b9c55ddab 15005:4a43e23b8c55
    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)