mercurial/ui.py
branchstable
changeset 19085 be207d9b7e4b
parent 19065 2c4cd1c42365
child 19195 9311cd5c09ed
--- a/mercurial/ui.py	Tue Apr 23 17:26:00 2013 -0500
+++ b/mercurial/ui.py	Thu Apr 25 20:48:49 2013 +0900
@@ -663,7 +663,8 @@
         if not self.interactive():
             return default
         try:
-            return getpass.getpass(prompt or _('password: '))
+            self.write(self.label(prompt or _('password: '), 'ui.prompt'))
+            return getpass.getpass('')
         except EOFError:
             raise util.Abort(_('response expected'))
     def status(self, *msg, **opts):