Mercurial > hg
comparison mercurial/url.py @ 12862:9d6adddc8eea stable
url: show realm/user when asking for username/password
author | timeless <timeless@gmail.com> |
---|---|
date | Tue, 26 Oct 2010 14:41:58 +0300 |
parents | 614f0d8724ab |
children | ae163a0a3cd0 |
comparison
equal
deleted
inserted
replaced
12861:1c57a66bf985 | 12862:9d6adddc8eea |
---|---|
129 if not user or not passwd: | 129 if not user or not passwd: |
130 if not self.ui.interactive(): | 130 if not self.ui.interactive(): |
131 raise util.Abort(_('http authorization required')) | 131 raise util.Abort(_('http authorization required')) |
132 | 132 |
133 self.ui.write(_("http authorization required\n")) | 133 self.ui.write(_("http authorization required\n")) |
134 self.ui.status(_("realm: %s\n") % realm) | 134 self.ui.write(_("realm: %s\n") % realm) |
135 if user: | 135 if user: |
136 self.ui.status(_("user: %s\n") % user) | 136 self.ui.write(_("user: %s\n") % user) |
137 else: | 137 else: |
138 user = self.ui.prompt(_("user:"), default=None) | 138 user = self.ui.prompt(_("user:"), default=None) |
139 | 139 |
140 if not passwd: | 140 if not passwd: |
141 passwd = self.ui.getpass() | 141 passwd = self.ui.getpass() |