Patchwork [3,of,4] extdiff: export __doc__ of saved command for translation

login
register
mail settings
Submitter Yuya Nishihara
Date Aug. 6, 2016, 4:50 a.m.
Message ID <99a275727f2eb0a69dd9.1470459014@mimosa>
Download mbox | patch
Permalink /patch/16150/
State Accepted
Headers show

Comments

Yuya Nishihara - Aug. 6, 2016, 4:50 a.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1469623344 -32400
#      Wed Jul 27 21:42:24 2016 +0900
# Node ID 99a275727f2eb0a69dd9dcd322584b824a5a22af
# Parent  0ef9fb589b62779866851c40366a061a8a840106
extdiff: export __doc__ of saved command for translation

Patch

diff --git a/hgext/extdiff.py b/hgext/extdiff.py
--- a/hgext/extdiff.py
+++ b/hgext/extdiff.py
@@ -385,3 +385,6 @@  def uisetup(ui):
                 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]