comparison hgext/children.py @ 37265:923362010525

children: use repo['.'] instead of repo[''] Differential Revision: https://phab.mercurial-scm.org/D3020
author Martin von Zweigbergk <martinvonz@google.com>
date Tue, 03 Apr 2018 00:12:29 +0530
parents c8e2d6ed1f9e
children 7c8524efd847
comparison
equal deleted inserted replaced
37264:d2c912836465 37265:923362010525
33 # be specifying the version(s) of Mercurial they are tested with, or 33 # be specifying the version(s) of Mercurial they are tested with, or
34 # leave the attribute unspecified. 34 # leave the attribute unspecified.
35 testedwith = 'ships-with-hg-core' 35 testedwith = 'ships-with-hg-core'
36 36
37 @command('children', 37 @command('children',
38 [('r', 'rev', '', 38 [('r', 'rev', '.',
39 _('show children of the specified revision'), _('REV')), 39 _('show children of the specified revision'), _('REV')),
40 ] + templateopts, 40 ] + templateopts,
41 _('hg children [-r REV] [FILE]'), 41 _('hg children [-r REV] [FILE]'),
42 inferrepo=True) 42 inferrepo=True)
43 def children(ui, repo, file_=None, **opts): 43 def children(ui, repo, file_=None, **opts):