mercurial/ui.py
branchstable
changeset 19880 ba2be32d14f2
parent 19226 c58b6ab4c26f
child 19886 e828975722c8
equal deleted inserted replaced
19879:5cbf413ce658 19880:ba2be32d14f2
   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)