You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ju...@apache.org on 2015/08/27 15:43:41 UTC

svn commit: r1698153 - /subversion/trunk/subversion/svn/svn.c

Author: julianfoad
Date: Thu Aug 27 13:43:40 2015
New Revision: 1698153

URL: http://svn.apache.org/r1698153
Log:
Improve help text for 'svn info --show-item'. Following r1698108, add back
the information that was removed, but placed differently in the help text.

Suggested by: brane

* subversion/svn/svn.c
  (svn_cl__options): Add descriptions of --show-item arguments.
  (svn_cl__cmd_table): Add a note about the default peg revision.

Modified:
    subversion/trunk/subversion/svn/svn.c

Modified: subversion/trunk/subversion/svn/svn.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/svn/svn.c?rev=1698153&r1=1698152&r2=1698153&view=diff
==============================================================================
--- subversion/trunk/subversion/svn/svn.c (original)
+++ subversion/trunk/subversion/svn/svn.c Thu Aug 27 13:43:40 2015
@@ -415,15 +415,58 @@ const apr_getopt_option_t svn_cl__option
                           "                             "
                           "current revision (recommended when tagging)")},
   {"show-item", opt_show_item, 1,
-                       N_("print only the item identified by ARG ('kind',\n"
+                       N_("print only the item identified by ARG:\n"
+                          "                             "
+                          "   'kind'       node kind of TARGET\n"
+                          "                             "
+                          "   'url'        URL of TARGET in the repository\n"
+                          "                             "
+                          "   'relative-url'\n"
+                          "                             "
+                          "                repository-relative URL of TARGET\n"
+                          "                             "
+                          "   'repos-root-url'\n"
+                          "                             "
+                          "                root URL of repository\n"
+                          "                             "
+                          "   'repos-uuid' UUID of repository\n"
+                          "                             "
+                          "   'revision'   specified or implied revision\n"
+                          "                             "
+                          "   'last-changed-revision'\n"
+                          "                             "
+                          "                last change of TARGET at 'revision'\n"
+                          "                             "
+                          "   'last-changed-date'\n"
+                          "                             "
+                          "                date of 'last-changed-revision'\n"
+                          "                             "
+                          "   'last-changed-author'\n"
+                          "                             "
+                          "                author of 'last-changed-revision'\n"
+                          "                             "
+                          "   'wc-root'    root of TARGET's working copy")},
+/*
+                       N_("print only the item identified by ARG: kind (node\n"
+                       "                             "
+                       "kind), url (repository URL), relative-url\n"
+                       "                             "
+                       "(repository-relative URL), repos-root-url (root\n"
+                       "                             "
+                       "URL of repository), repos-uuid (UUID of\n"
+                       "                             "
+                       "repository), revision (specified or implied\n"
+                       "                             "
+                       "revision), last-changed-revision (last commit at\n"
                        "                             "
-                       "'url', 'relative-url', 'repos-root-url',\n"
+                       "or before TARGET), last-changed-date (date of\n"
                        "                             "
-                       "'repos-uuid', 'revision', 'last-changed-revision',\n"
+                       "last-changed revision), last-changed-author\n"
                        "                             "
-                       "'last-changed-date', 'last-changed-author',\n"
+                       "(author of last-changed revision), wc-root (root\n"
                        "                             "
-                       "'wc-root')")},
+                       "of TARGET's working copy)")},
+*/
 
   /* Long-opt Aliases
    *
@@ -734,8 +777,9 @@ const svn_opt_subcommand_desc2_t svn_cl_
      "usage: info [TARGET[@REV]...]\n"
      "\n"
      "  Print information about each TARGET (default: '.').\n"
-     "  TARGET may be either a working-copy path or URL.  If specified, REV\n"
-     "  determines in which revision the target is first looked up.\n"
+     "  TARGET may be either a working-copy path or a URL.  If specified, REV\n"
+     "  determines in which revision the target is first looked up; the default\n"
+     "  is HEAD for a URL or BASE for a WC path.\n"
      "\n"
      "  With --show-item, print only the value of one item of information\n"
      "  about TARGET.\n"),