mercurial/posix.py
branchstable
changeset 47079 5b3513177f2b
parent 46819 d4ba4d51f85f
child 47622 bb917eea1605
--- a/mercurial/posix.py	Mon May 10 00:54:08 2021 +0000
+++ b/mercurial/posix.py	Wed May 12 12:41:52 2021 -0400
@@ -381,6 +381,10 @@
     return getattr(osutil, 'getfstype', lambda x: None)(dirpath)
 
 
+def get_password():
+    return encoding.strtolocal(getpass.getpass(''))
+
+
 def setbinary(fd):
     pass