Mercurial > hg
diff tests/test-diff-color.t @ 42566:f802a75da585
patch: use a short, fixed-size message for last line of prompt (issue6158)
See issue6158 and the previous commit for examples of what might go wrong if we
have some combinations of readline version and terminal and need to wrap the
line.
Briefly: readline may not display the beginning of the last line of the prompt,
or it may print over it with the end of the prompt, making it difficult for
users to know what's going on.
Differential Revision: https://phab.mercurial-scm.org/D6563
author | Kyle Lippincott <spectral@google.com> |
---|---|
date | Thu, 20 Jun 2019 14:45:52 -0700 |
parents | db72f9f6580e |
children |
line wrap: on
line diff
--- a/tests/test-diff-color.t Thu Jun 20 11:40:47 2019 -0700 +++ b/tests/test-diff-color.t Thu Jun 20 14:45:52 2019 -0700 @@ -171,7 +171,8 @@ a a c - \x1b[0;33mrecord this change to 'a'? [Ynesfdaq?]\x1b[0m y (esc) + \x1b[0;33mrecord this change to 'a'?\x1b[0m (esc) + \x1b[0;33m(enter ? for help) [Ynesfdaq?]\x1b[0m y (esc) $ echo "[extensions]" >> $HGRCPATH @@ -190,7 +191,8 @@ \x1b[0;36;1mold mode 100644\x1b[0m (esc) \x1b[0;36;1mnew mode 100755\x1b[0m (esc) 1 hunks, 1 lines changed - \x1b[0;33mexamine changes to 'a'? [Ynesfdaq?]\x1b[0m y (esc) + \x1b[0;33mexamine changes to 'a'?\x1b[0m (esc) + \x1b[0;33m(enter ? for help) [Ynesfdaq?]\x1b[0m y (esc) \x1b[0;35m@@ -2,7 +2,7 @@ c\x1b[0m (esc) c @@ -201,7 +203,8 @@ a a c - \x1b[0;33mrecord this change to 'a'? [Ynesfdaq?]\x1b[0m y (esc) + \x1b[0;33mrecord this change to 'a'?\x1b[0m (esc) + \x1b[0;33m(enter ? for help) [Ynesfdaq?]\x1b[0m y (esc) $ hg qpop -a