commands: deprecate the parents commands
authorMatt Mackall <mpm@selenic.com>
Mon, 22 Sep 2014 16:03:07 -0500
changeset 22501 bde49bbfb30f
parent 22500 171015d3b30c
child 22502 e6e7ef68c879
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.
mercurial/commands.py
tests/test-globalopts.t
tests/test-help.t
--- 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.
     """
 
--- a/tests/test-globalopts.t	Wed Sep 17 19:56:59 2014 -0700
+++ b/tests/test-globalopts.t	Mon Sep 22 16:03:07 2014 -0500
@@ -315,7 +315,6 @@
    manifest      output the current or given revision of the project manifest
    merge         merge working directory with another revision
    outgoing      show changesets not found in the destination
-   parents       show the parents of the working directory or revision
    paths         show aliases for remote repositories
    phase         set or show the current phase name
    pull          pull changes from the specified source
@@ -397,7 +396,6 @@
    manifest      output the current or given revision of the project manifest
    merge         merge working directory with another revision
    outgoing      show changesets not found in the destination
-   parents       show the parents of the working directory or revision
    paths         show aliases for remote repositories
    phase         set or show the current phase name
    pull          pull changes from the specified source
--- a/tests/test-help.t	Wed Sep 17 19:56:59 2014 -0700
+++ b/tests/test-help.t	Mon Sep 22 16:03:07 2014 -0500
@@ -80,7 +80,6 @@
    manifest      output the current or given revision of the project manifest
    merge         merge working directory with another revision
    outgoing      show changesets not found in the destination
-   parents       show the parents of the working directory or revision
    paths         show aliases for remote repositories
    phase         set or show the current phase name
    pull          pull changes from the specified source
@@ -156,7 +155,6 @@
    manifest      output the current or given revision of the project manifest
    merge         merge working directory with another revision
    outgoing      show changesets not found in the destination
-   parents       show the parents of the working directory or revision
    paths         show aliases for remote repositories
    phase         set or show the current phase name
    pull          pull changes from the specified source
@@ -698,7 +696,6 @@
    manifest      output the current or given revision of the project manifest
    merge         merge working directory with another revision
    outgoing      show changesets not found in the destination
-   parents       show the parents of the working directory or revision
    paths         show aliases for remote repositories
    phase         set or show the current phase name
    pull          pull changes from the specified source
@@ -1521,13 +1518,6 @@
   show changesets not found in the destination
   </td></tr>
   <tr><td>
-  <a href="/help/parents">
-  parents
-  </a>
-  </td><td>
-  show the parents of the working directory or revision
-  </td></tr>
-  <tr><td>
   <a href="/help/paths">
   paths
   </a>