color: copy docstring of label() template function to wrapper
authorYuya Nishihara <yuya@tcha.org>
Wed, 10 Jun 2015 22:08:15 +0900
changeset 25510 dd511b5cb818
parent 25509 576d6c74784b
child 25511 c2a4dfe2a336
color: copy docstring of label() template function to wrapper Otherwise label() wouldn't be listed in "hg help template" if color extension is enabled.
hgext/color.py
--- a/hgext/color.py	Mon Jun 08 18:48:45 2015 +0900
+++ b/hgext/color.py	Wed Jun 10 22:08:15 2015 +0900
@@ -531,6 +531,7 @@
         return orig(gitsub, commands, env, stream, cwd)
     extensions.wrapfunction(dispatch, '_runcommand', colorcmd)
     extensions.wrapfunction(subrepo.gitsubrepo, '_gitnodir', colorgit)
+    templatelabel.__doc__ = templater.funcs['label'].__doc__
     templater.funcs['label'] = templatelabel
 
 def extsetup(ui):