diff mercurial/ui.py @ 8940:01ada7b1861d

ui.prompt: Show prompt and selection in non-interactive mode ui.prompt was completely silent in non-interactive mode, unless in verbose mode. It is fine that it chooses the default automatically, but it is confusing that the message and prompt shown interactively can't be found in scripted tests. The prompt and selection is now .write'ed instead of .note'ed.
author Mads Kiilerich <mads@kiilerich.com>
date Sun, 21 Jun 2009 03:13:38 +0200
parents 3fa92c618624
children 86b4a9b0ddda
line wrap: on
line diff
--- a/mercurial/ui.py	Thu Jun 25 09:53:47 2009 +0200
+++ b/mercurial/ui.py	Sun Jun 21 03:13:38 2009 +0200
@@ -277,7 +277,7 @@
         insensitive. If ui is not interactive, the default is returned.
         """
         if not self.interactive():
-            self.note(msg, ' ', default, "\n")
+            self.write(msg, ' ', default, "\n")
             return default
         while True:
             try: