Mercurial > hg
comparison hgext/churn.py @ 7051:5f201f711932
i18n, churn: mark string for translation
author | Martin Geisler <mg@daimi.au.dk> |
---|---|
date | Tue, 23 Sep 2008 22:01:40 +0200 |
parents | a9411e29773f |
children | 9bc46d069a76 |
comparison
equal
deleted
inserted
replaced
7050:6788608627c4 | 7051:5f201f711932 |
---|---|
4 # | 4 # |
5 # This software may be used and distributed according to the terms | 5 # This software may be used and distributed according to the terms |
6 # of the GNU General Public License, incorporated herein by reference. | 6 # of the GNU General Public License, incorporated herein by reference. |
7 '''allow graphing the number of lines changed per contributor''' | 7 '''allow graphing the number of lines changed per contributor''' |
8 | 8 |
9 from mercurial.i18n import gettext as _ | 9 from mercurial.i18n import _ |
10 from mercurial import patch, cmdutil, util, node | 10 from mercurial import patch, cmdutil, util, node |
11 import os, sys | 11 import os, sys |
12 | 12 |
13 def get_tty_width(): | 13 def get_tty_width(): |
14 if 'COLUMNS' in os.environ: | 14 if 'COLUMNS' in os.environ: |
113 "churn": | 113 "churn": |
114 (churn, | 114 (churn, |
115 [('r', 'rev', [], _('limit statistics to the specified revisions')), | 115 [('r', 'rev', [], _('limit statistics to the specified revisions')), |
116 ('', 'aliases', '', _('file with email aliases')), | 116 ('', 'aliases', '', _('file with email aliases')), |
117 ('', 'progress', None, _('show progress'))], | 117 ('', 'progress', None, _('show progress'))], |
118 'hg churn [-r REVISIONS] [--aliases FILE] [--progress]'), | 118 _('hg churn [-r REVISIONS] [--aliases FILE] [--progress]')), |
119 } | 119 } |