hgext/children.py
changeset 17773 434e5bd615fc
parent 16743 38caf405d010
child 21248 48e859e30cbf
equal deleted inserted replaced
17772:823a7d79ef82 17773:434e5bd615fc
    12 
    12 
    13 This extension is deprecated. You should use :hg:`log -r
    13 This extension is deprecated. You should use :hg:`log -r
    14 "children(REV)"` instead.
    14 "children(REV)"` instead.
    15 '''
    15 '''
    16 
    16 
    17 from mercurial import cmdutil
    17 from mercurial import cmdutil, commands
    18 from mercurial.commands import templateopts
    18 from mercurial.commands import templateopts
    19 from mercurial.i18n import _
    19 from mercurial.i18n import _
    20 
    20 
    21 testedwith = 'internal'
    21 testedwith = 'internal'
    22 
    22 
    46          [('r', 'rev', '',
    46          [('r', 'rev', '',
    47            _('show children of the specified revision'), _('REV')),
    47            _('show children of the specified revision'), _('REV')),
    48          ] + templateopts,
    48          ] + templateopts,
    49          _('hg children [-r REV] [FILE]')),
    49          _('hg children [-r REV] [FILE]')),
    50 }
    50 }
       
    51 
       
    52 commands.inferrepo += " children"