equal
deleted
inserted
replaced
662 |
662 |
663 def getpass(self, prompt=None, default=None): |
663 def getpass(self, prompt=None, default=None): |
664 if not self.interactive(): |
664 if not self.interactive(): |
665 return default |
665 return default |
666 try: |
666 try: |
667 self.write(self.label(prompt or _('password: '), 'ui.prompt')) |
667 self.write_err(self.label(prompt or _('password: '), 'ui.prompt')) |
668 return getpass.getpass('') |
668 return getpass.getpass('') |
669 except EOFError: |
669 except EOFError: |
670 raise util.Abort(_('response expected')) |
670 raise util.Abort(_('response expected')) |
671 def status(self, *msg, **opts): |
671 def status(self, *msg, **opts): |
672 '''write status message to output (if ui.quiet is False) |
672 '''write status message to output (if ui.quiet is False) |