mercurial/debugcommands.py
branchstable
changeset 46024 07b0a687c01a
parent 45715 0428978bca22
child 46030 2cf61e66c6d0
child 46079 e614eeb794f9
equal deleted inserted replaced
46023:139b334c9392 46024:07b0a687c01a
  3785     norepo=True,
  3785     norepo=True,
  3786 )
  3786 )
  3787 def debuguigetpass(ui, prompt=b''):
  3787 def debuguigetpass(ui, prompt=b''):
  3788     """show prompt to type password"""
  3788     """show prompt to type password"""
  3789     r = ui.getpass(prompt)
  3789     r = ui.getpass(prompt)
       
  3790     if r is not None:
       
  3791         r = encoding.strtolocal(r)
       
  3792     else:
       
  3793         r = b"<default response>"
  3790     ui.writenoi18n(b'response: %s\n' % r)
  3794     ui.writenoi18n(b'response: %s\n' % r)
  3791 
  3795 
  3792 
  3796 
  3793 @command(
  3797 @command(
  3794     b'debuguiprompt',
  3798     b'debuguiprompt',