Mercurial > public > mercurial-scm > hg-stable
diff mercurial/ui.py @ 7320:8dca507e56ce
ui: log non-interactive default response to stdout when verbose
This allows test scripts that feed their output into documentation
to properly show the session as it would appear to an end-user.
author | Peter Arrenbrecht <peter.arrenbrecht@gmail.com> |
---|---|
date | Fri, 07 Nov 2008 10:27:39 +0100 |
parents | 7192876ac329 |
children | 1d58c0491d5e 0a27d0db256d |
line wrap: on
line diff
--- a/mercurial/ui.py Thu Nov 06 11:17:38 2008 +0100 +++ b/mercurial/ui.py Fri Nov 07 10:27:39 2008 +0100 @@ -421,7 +421,9 @@ If not interactive -- the default is returned """ - if not self.interactive: return default + if not self.interactive: + self.note(msg, ' ', default, "\n") + return default while True: try: r = self._readline(msg + ' ')