diff hgext/graphlog.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 6dcc190ffc36
children e75aab656f46
line wrap: on
line diff
--- a/hgext/graphlog.py	Fri Feb 29 02:15:31 2008 +0100
+++ b/hgext/graphlog.py	Fri Feb 29 02:45:12 2008 +0100
@@ -8,6 +8,7 @@
 import os
 import sys
 from mercurial.cmdutil import revrange, show_changeset
+from mercurial.commands import templateopts
 from mercurial.i18n import _
 from mercurial.node import nullid, nullrev
 from mercurial.util import Abort, canonpath
@@ -320,7 +321,6 @@
          [('l', 'limit', '', _('limit number of changes displayed')),
           ('p', 'patch', False, _('show patch')),
           ('r', 'rev', [], _('show the specified revision or range')),
-          ('', 'style', '', _('display using template map file')),
-          ('', 'template', '', _('display with template'))],
+         ] + templateopts,
          _('hg glog [OPTION]... [FILE]')),
 }