##// END OF EJS Templates
ui: label prompts, default to yellow prompts
Martin Geisler -
r13774:1ce0e807 default
parent child Browse files
Show More
@@ -107,6 +107,7 b' from mercurial.i18n import _'
107 107 'diff.trailingwhitespace': 'bold red_background',
108 108 'diffstat.deleted': 'red',
109 109 'diffstat.inserted': 'green',
110 'ui.prompt': 'yellow',
110 111 'log.changeset': 'yellow',
111 112 'resolve.resolved': 'green bold',
112 113 'resolve.unresolved': 'red bold',
@@ -483,7 +483,7 b' class ui(object):'
483 483 self.write(msg, ' ', default, "\n")
484 484 return default
485 485 try:
486 r = self._readline(msg + ' ')
486 r = self._readline(self.label(msg, 'ui.prompt') + ' ')
487 487 if not r:
488 488 return default
489 489 return r
@@ -81,7 +81,7 b' record'
81 81 \x1b[0;36;1mold mode 100644\x1b[0m (esc)
82 82 \x1b[0;36;1mnew mode 100755\x1b[0m (esc)
83 83 1 hunks, 1 lines changed
84 examine changes to 'a'? [Ynsfdaq?]
84 \x1b[0;33mexamine changes to 'a'? [Ynsfdaq?]\x1b[0m (esc)
85 85 \x1b[0;35m@@ -2,7 +2,7 @@\x1b[0m (esc)
86 86 c
87 87 a
@@ -91,7 +91,7 b' record'
91 91 a
92 92 a
93 93 c
94 record this change to 'a'? [Ynsfdaq?]
94 \x1b[0;33mrecord this change to 'a'? [Ynsfdaq?]\x1b[0m (esc)
95 95 $ echo
96 96
97 97 $ echo "[extensions]" >> $HGRCPATH
@@ -110,7 +110,7 b' qrecord'
110 110 \x1b[0;36;1mold mode 100644\x1b[0m (esc)
111 111 \x1b[0;36;1mnew mode 100755\x1b[0m (esc)
112 112 1 hunks, 1 lines changed
113 examine changes to 'a'? [Ynsfdaq?]
113 \x1b[0;33mexamine changes to 'a'? [Ynsfdaq?]\x1b[0m (esc)
114 114 \x1b[0;35m@@ -2,7 +2,7 @@\x1b[0m (esc)
115 115 c
116 116 a
@@ -120,6 +120,6 b' qrecord'
120 120 a
121 121 a
122 122 c
123 record this change to 'a'? [Ynsfdaq?]
123 \x1b[0;33mrecord this change to 'a'? [Ynsfdaq?]\x1b[0m (esc)
124 124 $ echo
125 125
General Comments 0
You need to be logged in to leave comments. Login now