equal
deleted
inserted
replaced
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")) |