changeset 155:1c3ec0b529c4

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.
author IBBoard <dev@ibboard.co.uk>
date Tue, 30 May 2023 18:49:56 +0100
parents 99a7805cb924
children 8bf9fc90ce51
files prompt.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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