[PATCH] Flush password prompts for non-terminal callers
Steven Streeting
steve at stevestreeting.com
Sun Jan 16 05:14:21 CST 2011
> A meta comment: See http://mercurial.selenic.com/wiki/ContributingChanges , especially
Sorry - I tried to follow the instructions manually but I guess I should have just installed the patchbomb ext.
> Don't change the prompt.
Oops, I hadn't meant to - I must have chopped off the trailing space by accident.
> Instead I suggest first writing the prompt (with flushing), and then call the existing functions with '' as prompt.
Ok, this sounds reasonable, so just a sys.stderr.write() followed by a sys.stderr.flush() and then the previous getpass() / raw_input() calls? If I can get that to work, should I re-submit?
Cheers
Steve
More information about the Mercurial-devel
mailing list