mercurial/url.py
changeset 8344 873429914ec5
parent 8333 89c80c3dc584
child 8590 59acb9c7d90f
equal deleted inserted replaced
8343:6fbbb90261b1 8344:873429914ec5
   106         user, passwd = authinfo
   106         user, passwd = authinfo
   107         if user and passwd:
   107         if user and passwd:
   108             self._writedebug(user, passwd)
   108             self._writedebug(user, passwd)
   109             return (user, passwd)
   109             return (user, passwd)
   110 
   110 
   111         user, passwd = self._readauthtoken(authuri)
   111         if not user:
       
   112             user, passwd = self._readauthtoken(authuri)
   112         if not user or not passwd:
   113         if not user or not passwd:
   113             if not self.ui.interactive():
   114             if not self.ui.interactive():
   114                 raise util.Abort(_('http authorization required'))
   115                 raise util.Abort(_('http authorization required'))
   115 
   116 
   116             self.ui.write(_("http authorization required\n"))
   117             self.ui.write(_("http authorization required\n"))