##// END OF EJS Templates
py3: use stringutil.pprint() to print NoneType...
Pulkit Goyal -
r38463:a0c3d83d default
parent child Browse files
Show More
@@ -427,7 +427,7 b' def debugcheckstate(ui, repo):'
427 'hg debugcolor')
427 'hg debugcolor')
428 def debugcolor(ui, repo, **opts):
428 def debugcolor(ui, repo, **opts):
429 """show available color, effects or style"""
429 """show available color, effects or style"""
430 ui.write(('color mode: %s\n') % ui._colormode)
430 ui.write(('color mode: %s\n') % stringutil.pprint(ui._colormode))
431 if opts.get(r'style'):
431 if opts.get(r'style'):
432 return _debugdisplaystyle(ui)
432 return _debugdisplaystyle(ui)
433 else:
433 else:
@@ -337,7 +337,7 b' Test debugcolor'
337
337
338 #if no-windows
338 #if no-windows
339 $ hg debugcolor --style --color always | egrep 'mode|style|log\.'
339 $ hg debugcolor --style --color always | egrep 'mode|style|log\.'
340 color mode: ansi
340 color mode: 'ansi'
341 available style:
341 available style:
342 \x1b[0;33mlog.changeset\x1b[0m: \x1b[0;33myellow\x1b[0m (esc)
342 \x1b[0;33mlog.changeset\x1b[0m: \x1b[0;33myellow\x1b[0m (esc)
343 #endif
343 #endif
General Comments 0
You need to be logged in to leave comments. Login now