Mercurial > hg
comparison mercurial/url.py @ 8208:32a2a1e244f1
ui: make interactive a method
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 26 Apr 2009 16:50:44 -0500 |
parents | bbc24c0753a0 |
children | 46293a0c7e9f |
comparison
equal
deleted
inserted
replaced
8207:dd8d5be57d65 | 8208:32a2a1e244f1 |
---|---|
105 self, realm, authuri) | 105 self, realm, authuri) |
106 user, passwd = authinfo | 106 user, passwd = authinfo |
107 if user and passwd: | 107 if user and passwd: |
108 return (user, passwd) | 108 return (user, passwd) |
109 | 109 |
110 if not self.ui.interactive: | 110 if not self.ui.interactive(): |
111 raise util.Abort(_('http authorization required')) | 111 raise util.Abort(_('http authorization required')) |
112 | 112 |
113 self.ui.write(_("http authorization required\n")) | 113 self.ui.write(_("http authorization required\n")) |
114 self.ui.status(_("realm: %s\n") % realm) | 114 self.ui.status(_("realm: %s\n") % realm) |
115 if user: | 115 if user: |