Mercurial > public > mercurial-scm > hg
diff hgext/children.py @ 6192:cd65a67aff31
Introduce templateopts and logopts to reduce duplicate option definitions.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 29 Feb 2008 02:45:12 +0100 |
parents | be78ab217109 |
children | f6c00b17387c |
line wrap: on
line diff
--- a/hgext/children.py Fri Feb 29 02:15:31 2008 +0100 +++ b/hgext/children.py Fri Feb 29 02:45:12 2008 +0100 @@ -8,6 +8,7 @@ # of the GNU General Public License, incorporated herein by reference. from mercurial import cmdutil +from mercurial.commands import templateopts from mercurial.i18n import _ @@ -35,7 +36,6 @@ "children": (children, [('r', 'rev', '', _('show children of the specified rev')), - ('', 'style', '', _('display using template map file')), - ('', 'template', '', _('display with template'))], + ] + templateopts, _('hg children [-r REV] [FILE]')), }