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 2017/08/29 15:51:55 UTC

svn commit: r1806614 - in /subversion/branches/shelve/subversion/svn: shelve-cmd.c svn.c

Author: julianfoad
Date: Tue Aug 29 15:51:55 2017
New Revision: 1806614

URL: http://svn.apache.org/viewvc?rev=1806614&view=rev
Log:
On the 'shelve' branch: Make the PATH argument optional, for
convenience.

This will also enable making the NAME argument optional later.

* subversion/svn/svn.c
  (svn_cl__cmd_table): Show PATH argument as optional.

* subversion/svn/shelve-cmd.c
  (svn_cl__shelve): Supply a default "this directory" argument.

Modified:
    subversion/branches/shelve/subversion/svn/shelve-cmd.c
    subversion/branches/shelve/subversion/svn/svn.c

Modified: subversion/branches/shelve/subversion/svn/shelve-cmd.c
URL: http://svn.apache.org/viewvc/subversion/branches/shelve/subversion/svn/shelve-cmd.c?rev=1806614&r1=1806613&r2=1806614&view=diff
==============================================================================
--- subversion/branches/shelve/subversion/svn/shelve-cmd.c (original)
+++ subversion/branches/shelve/subversion/svn/shelve-cmd.c Tue Aug 29 15:51:55 2017
@@ -165,6 +165,7 @@ svn_cl__shelve(apr_getopt_t *os,
   SVN_ERR(svn_cl__args_to_target_array_print_reserved(&targets, os,
                                                       opt_state->targets,
                                                       ctx, FALSE, pool));
+  svn_opt_push_implicit_dot_target(targets, pool);
 
   {
       svn_depth_t depth = opt_state->depth;

Modified: subversion/branches/shelve/subversion/svn/svn.c
URL: http://svn.apache.org/viewvc/subversion/branches/shelve/subversion/svn/svn.c?rev=1806614&r1=1806613&r2=1806614&view=diff
==============================================================================
--- subversion/branches/shelve/subversion/svn/svn.c (original)
+++ subversion/branches/shelve/subversion/svn/svn.c Tue Aug 29 15:51:55 2017
@@ -1651,7 +1651,7 @@ const svn_opt_subcommand_desc2_t svn_cl_
 
   { "shelve", svn_cl__shelve, {0}, N_
     ("Put a local change aside, as if putting it on a shelf.\n"
-     "usage: 1. shelve [--keep-local] NAME PATH...\n"
+     "usage: 1. shelve [--keep-local] NAME [PATH...]\n"
      "       2. shelve --delete NAME\n"
      "       3. shelve --list\n"
      "\n"