diff 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
line wrap: on
line diff
--- a/mercurial/commands.py	Wed Sep 17 19:56:59 2014 -0700
+++ b/mercurial/commands.py	Mon Sep 22 16:03:07 2014 -0500
@@ -4607,7 +4607,7 @@
     _('[-r REV] [FILE]'),
     inferrepo=True)
 def parents(ui, repo, file_=None, **opts):
-    """show the parents of the working directory or revision
+    """show the parents of the working directory or revision (DEPRECATED)
 
     Print the working directory's parent revisions. If a revision is
     given via -r/--rev, the parent of that revision will be printed.
@@ -4615,6 +4615,8 @@
     last changed (before the working directory revision or the
     argument to --rev if given) is printed.
 
+    See :hg:`summary` and :hg:`help revsets` for related information.
+
     Returns 0 on success.
     """