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 2020/03/10 12:46:50 UTC

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

Author: julianfoad
Date: Tue Mar 10 12:46:50 2020
New Revision: 1875039

URL: http://svn.apache.org/viewvc?rev=1875039&view=rev
Log:
Let shelving be disabled by default.

Set the env. var. 'SVN_EXPERIMENTAL_COMMANDS' to a value that includes
'shelf2' or 'shelf3' to enable shelving v2 or v3 respectively.
* subversion/svn/svn.c
  (sub_main): Default to no shelving if the var is not set.

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=1875039&r1=1875038&r2=1875039&view=diff
==============================================================================
--- subversion/trunk/subversion/svn/svn.c (original)
+++ subversion/trunk/subversion/svn/svn.c Tue Mar 10 12:46:50 2020
@@ -2068,9 +2068,10 @@ sub_main(int *exit_code, int argc, const
   /* Init the temporary buffer. */
   svn_membuf__create(&buf, 0, pool);
 
-  /* Add experimental commands, if requested */
+  /* Add experimental commands, if requested. Use the most recent version
+   * that we know about and that is mentioned in the env. var. */
   exp_cmds = getenv("SVN_EXPERIMENTAL_COMMANDS");
-  if (!exp_cmds || strstr(exp_cmds, "shelf3"))
+  if (exp_cmds && strstr(exp_cmds, "shelf3"))
     {
       add_commands(svn_cl__cmd_table_shelf3, pool);
     }