Show More
@@ -443,10 +443,10 b' def showdiffstat(repo, ctx, templ, **arg' | |||||
443 | return '%s: +%s/-%s' % (len(stats), adds, removes) |
|
443 | return '%s: +%s/-%s' % (len(stats), adds, removes) | |
444 |
|
444 | |||
445 | @templatekeyword('envvars') |
|
445 | @templatekeyword('envvars') | |
446 |
def showenvvars( |
|
446 | def showenvvars(ui, **args): | |
447 | """A dictionary of environment variables. (EXPERIMENTAL)""" |
|
447 | """A dictionary of environment variables. (EXPERIMENTAL)""" | |
448 | args = pycompat.byteskwargs(args) |
|
448 | args = pycompat.byteskwargs(args) | |
449 |
env = |
|
449 | env = ui.exportableenviron() | |
450 | env = util.sortdict((k, env[k]) for k in sorted(env)) |
|
450 | env = util.sortdict((k, env[k]) for k in sorted(env)) | |
451 | return showdict('envvar', env, args, plural='envvars') |
|
451 | return showdict('envvar', env, args, plural='envvars') | |
452 |
|
452 | |||
@@ -897,9 +897,9 b' def showtags(**args):' | |||||
897 | return shownames('tags', **args) |
|
897 | return shownames('tags', **args) | |
898 |
|
898 | |||
899 | @templatekeyword('termwidth') |
|
899 | @templatekeyword('termwidth') | |
900 |
def showtermwidth( |
|
900 | def showtermwidth(ui, **args): | |
901 | """Integer. The width of the current terminal.""" |
|
901 | """Integer. The width of the current terminal.""" | |
902 |
return |
|
902 | return ui.termwidth() | |
903 |
|
903 | |||
904 | @templatekeyword('instabilities') |
|
904 | @templatekeyword('instabilities') | |
905 | def showinstabilities(**args): |
|
905 | def showinstabilities(**args): |
General Comments 0
You need to be logged in to leave comments.
Login now