Show More
@@ -462,6 +462,8 b' def _debugdisplaycolor(ui):' | |||||
462 |
|
462 | |||
463 | def _debugdisplaystyle(ui): |
|
463 | def _debugdisplaystyle(ui): | |
464 | ui.write(_('available style:\n')) |
|
464 | ui.write(_('available style:\n')) | |
|
465 | if not ui._styles: | |||
|
466 | return | |||
465 | width = max(len(s) for s in ui._styles) |
|
467 | width = max(len(s) for s in ui._styles) | |
466 | for label, effects in sorted(ui._styles.items()): |
|
468 | for label, effects in sorted(ui._styles.items()): | |
467 | ui.write('%s' % label, label=label) |
|
469 | ui.write('%s' % label, label=label) |
@@ -333,6 +333,19 b' Test cache warming command' | |||||
333 | .hg/cache/rbc-names-v1 |
|
333 | .hg/cache/rbc-names-v1 | |
334 | .hg/cache/branch2-served |
|
334 | .hg/cache/branch2-served | |
335 |
|
335 | |||
|
336 | Test debugcolor | |||
|
337 | ||||
|
338 | #if no-windows | |||
|
339 | $ hg debugcolor --style --color always | egrep 'mode|style|log\.' | |||
|
340 | color mode: ansi | |||
|
341 | available style: | |||
|
342 | \x1b[0;33mlog.changeset\x1b[0m: \x1b[0;33myellow\x1b[0m (esc) | |||
|
343 | #endif | |||
|
344 | ||||
|
345 | $ hg debugcolor --style --color never | |||
|
346 | color mode: None | |||
|
347 | available style: | |||
|
348 | ||||
336 | $ cd .. |
|
349 | $ cd .. | |
337 |
|
350 | |||
338 | Test internal debugstacktrace command |
|
351 | Test internal debugstacktrace command |
General Comments 0
You need to be logged in to leave comments.
Login now