changeset 22589 | 9ab18a912c44 |
parent 22419 | fdfc9faca273 |
child 22675 | 4e64d255f1a8 |
--- a/mercurial/ui.py Tue Sep 30 18:22:58 2014 -0500 +++ b/mercurial/ui.py Wed Oct 01 01:04:18 2014 +0200 @@ -681,7 +681,11 @@ try: r = self._readline(self.label(msg, 'ui.prompt')) if not r: - return default + r = default + # sometimes self.interactive disagrees with isatty, + # show default response + if not util.isatty(self.fin): + self.write(r, "\n") return r except EOFError: raise util.Abort(_('response expected'))