extdiff: export __doc__ of saved command for translation
authorYuya Nishihara <yuya@tcha.org>
Wed, 27 Jul 2016 21:42:24 +0900
changeset 29722 14c3afcb1c26
parent 29721 479076db51be
child 29723 91b2f2176395
extdiff: export __doc__ of saved command for translation
hgext/extdiff.py
--- a/hgext/extdiff.py	Wed Jul 27 21:40:42 2016 +0900
+++ b/hgext/extdiff.py	Wed Jul 27 21:42:24 2016 +0900
@@ -385,3 +385,6 @@
                 cmdline += ' ' + args
         command(cmd, extdiffopts[:], _('hg %s [OPTION]... [FILE]...') % cmd,
                 inferrepo=True)(savedcmd(path, cmdline))
+
+# tell hggettext to extract docstrings from these functions:
+i18nfunctions = [savedcmd]