equal
deleted
inserted
replaced
6 # |
6 # |
7 # This software may be used and distributed according to the terms |
7 # This software may be used and distributed according to the terms |
8 # of the GNU General Public License, incorporated herein by reference. |
8 # of the GNU General Public License, incorporated herein by reference. |
9 |
9 |
10 from mercurial import cmdutil |
10 from mercurial import cmdutil |
|
11 from mercurial.commands import templateopts |
11 from mercurial.i18n import _ |
12 from mercurial.i18n import _ |
12 |
13 |
13 |
14 |
14 def children(ui, repo, file_=None, **opts): |
15 def children(ui, repo, file_=None, **opts): |
15 """show the children of the given or working dir revision |
16 """show the children of the given or working dir revision |
33 |
34 |
34 cmdtable = { |
35 cmdtable = { |
35 "children": |
36 "children": |
36 (children, |
37 (children, |
37 [('r', 'rev', '', _('show children of the specified rev')), |
38 [('r', 'rev', '', _('show children of the specified rev')), |
38 ('', 'style', '', _('display using template map file')), |
39 ] + templateopts, |
39 ('', 'template', '', _('display with template'))], |
|
40 _('hg children [-r REV] [FILE]')), |
40 _('hg children [-r REV] [FILE]')), |
41 } |
41 } |