Mercurial > hg
diff mercurial/ui.py @ 40593:6f0941f4a184
commandserver: make getpass() request distinct from normal prompt
Otherwise, GUI clients would have to parse the prompt text.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 04 Nov 2018 12:38:49 +0900 |
parents | 83e571ea06a9 |
children | 234c2d8c9e48 |
line wrap: on
line diff
--- a/mercurial/ui.py Sun Nov 04 12:17:20 2018 +0900 +++ b/mercurial/ui.py Sun Nov 04 12:38:49 2018 +0900 @@ -1464,7 +1464,7 @@ return default try: self._writemsg(self._fmsgerr, prompt or _('password: '), - type='prompt') + type='prompt', password=True) # disable getpass() only if explicitly specified. it's still valid # to interact with tty even if fin is not a tty. with self.timeblockedsection('stdio'):