# HG changeset patch # User IBBoard # Date 1685468996 -3600 # Node ID 1c3ec0b529c45522a55ecd89bdda6cbaa5ae8994 # Parent 99a7805cb92416f4eab3a3bf682b7983aadaa6af Make HG Prompt fail quickly with bad auth This happens when the keyring isn't working correctly. Non-interactive mode aborts as soon as it needs to prompt. diff -r 99a7805cb924 -r 1c3ec0b529c4 prompt.py --- a/prompt.py Tue May 30 15:20:24 2023 +0100 +++ b/prompt.py Tue May 30 18:49:56 2023 +0100 @@ -47,7 +47,7 @@ # This is kind of a hack and I feel a little bit dirty for doing it. IGNORE = open('NUL:','w') if platform.system() == 'Windows' else open('/dev/null','w') - subprocess.call(['hg', kind, '--quiet'], stdout=open(c_tmp, 'w'), stderr=IGNORE) + subprocess.call(['hg', kind, '--quiet', '--config', 'ui.interactive=False'], stdout=open(c_tmp, 'w'), stderr=IGNORE) os.rename(c_tmp, cache) return