comparison mercurial/commands.py @ 22501:bde49bbfb30f

commands: deprecate the parents commands It's replaced by 'hg summary' or hg log -r 'parents(foo)' and doesn't need to take up space in our command list anymore.
author Matt Mackall <mpm@selenic.com>
date Mon, 22 Sep 2014 16:03:07 -0500
parents dff638170c48
children e6e7ef68c879
comparison
equal deleted inserted replaced
22500:171015d3b30c 22501:bde49bbfb30f
4605 [('r', 'rev', '', _('show parents of the specified revision'), _('REV')), 4605 [('r', 'rev', '', _('show parents of the specified revision'), _('REV')),
4606 ] + templateopts, 4606 ] + templateopts,
4607 _('[-r REV] [FILE]'), 4607 _('[-r REV] [FILE]'),
4608 inferrepo=True) 4608 inferrepo=True)
4609 def parents(ui, repo, file_=None, **opts): 4609 def parents(ui, repo, file_=None, **opts):
4610 """show the parents of the working directory or revision 4610 """show the parents of the working directory or revision (DEPRECATED)
4611 4611
4612 Print the working directory's parent revisions. If a revision is 4612 Print the working directory's parent revisions. If a revision is
4613 given via -r/--rev, the parent of that revision will be printed. 4613 given via -r/--rev, the parent of that revision will be printed.
4614 If a file argument is given, the revision in which the file was 4614 If a file argument is given, the revision in which the file was
4615 last changed (before the working directory revision or the 4615 last changed (before the working directory revision or the
4616 argument to --rev if given) is printed. 4616 argument to --rev if given) is printed.
4617
4618 See :hg:`summary` and :hg:`help revsets` for related information.
4617 4619
4618 Returns 0 on success. 4620 Returns 0 on success.
4619 """ 4621 """
4620 4622
4621 ctx = scmutil.revsingle(repo, opts.get('rev'), None) 4623 ctx = scmutil.revsingle(repo, opts.get('rev'), None)