Show More
@@ -885,6 +885,19 b' def showinstabilities(**args):' | |||
|
885 | 885 | return showlist('instability', args['ctx'].instabilities(), args, |
|
886 | 886 | plural='instabilities') |
|
887 | 887 | |
|
888 | @templatekeyword('verbosity') | |
|
889 | def showverbosity(ui, **args): | |
|
890 | """String. The current output verbosity in 'debug', 'quiet', 'verbose', | |
|
891 | or ''.""" | |
|
892 | # see cmdutil.changeset_templater for priority of these flags | |
|
893 | if ui.debugflag: | |
|
894 | return 'debug' | |
|
895 | elif ui.quiet: | |
|
896 | return 'quiet' | |
|
897 | elif ui.verbose: | |
|
898 | return 'verbose' | |
|
899 | return '' | |
|
900 | ||
|
888 | 901 | def loadkeyword(ui, extname, registrarobj): |
|
889 | 902 | """Load template keyword from specified registrarobj |
|
890 | 903 | """ |
@@ -2876,6 +2876,17 b' Test diff function:' | |||
|
2876 | 2876 | @@ -0,0 +1,1 @@ |
|
2877 | 2877 | +second |
|
2878 | 2878 | |
|
2879 | ui verbosity: | |
|
2880 | ||
|
2881 | $ hg log -l1 -T '{verbosity}\n' | |
|
2882 | ||
|
2883 | $ hg log -l1 -T '{verbosity}\n' --debug | |
|
2884 | debug | |
|
2885 | $ hg log -l1 -T '{verbosity}\n' --quiet | |
|
2886 | quiet | |
|
2887 | $ hg log -l1 -T '{verbosity}\n' --verbose | |
|
2888 | verbose | |
|
2889 | ||
|
2879 | 2890 | $ cd .. |
|
2880 | 2891 | |
|
2881 | 2892 |
General Comments 0
You need to be logged in to leave comments.
Login now