changeset 24779:23727465ff72

record: add message when starting record's curses interface We are adding this log message to reduce a confusion when a command prints something just before starting the curses interface. Since the interactive mode is taking over the entire screen, starts with no delay and does wait for a key press, the user believes that messages printed before opening the interactive mode were actually printed after using interactive mode, not before. The fix adds the line "Starting interactive mode" helping the user separate the messages that were printed before and after the start of the interactive mode. One particular example where this was a problem is the revert command where we first print the list of changes to be considered for revert, then opens the curses interface right away without letting the user see the messages. The user then selects the changes, validates and then see the messages from before opening the interactive mode and is confused.
author Laurent Charignon <lcharignon@fb.com>
date Thu, 16 Apr 2015 14:26:50 -0700
parents a48b65ab428d
children 4ea521b3c554
files mercurial/crecord.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/crecord.py	Tue Apr 14 20:09:56 2015 +0200
+++ b/mercurial/crecord.py	Thu Apr 16 14:26:50 2015 -0700
@@ -477,6 +477,7 @@
     of the chosen chunks.
 
     """
+    ui.write(_('starting interactive selection\n'))
     chunkselector = curseschunkselector(headerlist, ui)
     curses.wrapper(chunkselector.main)