Mercurial > hg
comparison hgext/color.py @ 25510:dd511b5cb818
color: copy docstring of label() template function to wrapper
Otherwise label() wouldn't be listed in "hg help template" if color extension
is enabled.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Wed, 10 Jun 2015 22:08:15 +0900 |
parents | ceec79b5657a |
children | fd5bc660c9f0 |
comparison
equal
deleted
inserted
replaced
25509:576d6c74784b | 25510:dd511b5cb818 |
---|---|
529 # the end of git diff arguments is used for paths | 529 # the end of git diff arguments is used for paths |
530 commands.insert(1, '--color') | 530 commands.insert(1, '--color') |
531 return orig(gitsub, commands, env, stream, cwd) | 531 return orig(gitsub, commands, env, stream, cwd) |
532 extensions.wrapfunction(dispatch, '_runcommand', colorcmd) | 532 extensions.wrapfunction(dispatch, '_runcommand', colorcmd) |
533 extensions.wrapfunction(subrepo.gitsubrepo, '_gitnodir', colorgit) | 533 extensions.wrapfunction(subrepo.gitsubrepo, '_gitnodir', colorgit) |
534 templatelabel.__doc__ = templater.funcs['label'].__doc__ | |
534 templater.funcs['label'] = templatelabel | 535 templater.funcs['label'] = templatelabel |
535 | 536 |
536 def extsetup(ui): | 537 def extsetup(ui): |
537 commands.globalopts.append( | 538 commands.globalopts.append( |
538 ('', 'color', 'auto', | 539 ('', 'color', 'auto', |