Author: brane
Date: Mon Feb 16 12:53:47 2015
New Revision: 1660103

URL: http://svn.apache.org/r1660103
Log:
On the svn-info-detail branch: Remove the 'svn youngest' command.

* subversion/svn/cl.h
  (svn_cl__youngest): Remove declaration.
* subversion/svn/youngest-cmd.c: Removed file.
  (svn_cl__youngest): Gone.
* subversion/svn/svn.c
  (svn_cl__cmd_table): Remove the definition of the 'svn youngest' subcommand.

* subversion/tests/cmdline/basic_tests.py
  (basic_youngest): Removed.
  (test_list): Removed entry for basic_youngest.
* subversion/tests/cmdline/getopt_tests_data/svn--help_stdout,
  subversion/tests/cmdline/getopt_tests_data/svn_help_stdout:
   Adjust expected output for getopt_tests.py.

Removed:
    subversion/branches/svn-info-detail/subversion/svn/youngest-cmd.c
Modified:
    subversion/branches/svn-info-detail/subversion/svn/cl.h
    subversion/branches/svn-info-detail/subversion/svn/svn.c
    subversion/branches/svn-info-detail/subversion/tests/cmdline/basic_tests.py
    
subversion/branches/svn-info-detail/subversion/tests/cmdline/getopt_tests_data/svn--help_stdout
    
subversion/branches/svn-info-detail/subversion/tests/cmdline/getopt_tests_data/svn_help_stdout

Modified: subversion/branches/svn-info-detail/subversion/svn/cl.h
URL: 
http://svn.apache.org/viewvc/subversion/branches/svn-info-detail/subversion/svn/cl.h?rev=1660103&r1=1660102&r2=1660103&view=diff
==============================================================================
--- subversion/branches/svn-info-detail/subversion/svn/cl.h (original)
+++ subversion/branches/svn-info-detail/subversion/svn/cl.h Mon Feb 16 12:53:47 
2015
@@ -297,8 +297,7 @@ svn_opt_subcommand_t
   svn_cl__switch,
   svn_cl__unlock,
   svn_cl__update,
-  svn_cl__upgrade,
-  svn_cl__youngest;
+  svn_cl__upgrade;
 
 
 /* See definition in svn.c for documentation. */

Modified: subversion/branches/svn-info-detail/subversion/svn/svn.c
URL: 
http://svn.apache.org/viewvc/subversion/branches/svn-info-detail/subversion/svn/svn.c?rev=1660103&r1=1660102&r2=1660103&view=diff
==============================================================================
--- subversion/branches/svn-info-detail/subversion/svn/svn.c (original)
+++ subversion/branches/svn-info-detail/subversion/svn/svn.c Mon Feb 16 
12:53:47 2015
@@ -1723,14 +1723,6 @@ const svn_opt_subcommand_desc2_t svn_cl_
      "  Local modifications are preserved.\n"),
     { 'q' } },
 
-  { "youngest", svn_cl__youngest, {0}, N_
-    ("Print the youngest revision number of a target's repository.\n"
-     "usage: youngest [TARGET]\n"
-     "\n"
-     "  Print the revision number of the youngest revision in the repository\n"
-     "  with which TARGET is associated.\n"),
-    { opt_no_newline } },
-
   { NULL, NULL, {0}, NULL, {0} }
 };
 

Modified: 
subversion/branches/svn-info-detail/subversion/tests/cmdline/basic_tests.py
URL: 
http://svn.apache.org/viewvc/subversion/branches/svn-info-detail/subversion/tests/cmdline/basic_tests.py?rev=1660103&r1=1660102&r2=1660103&view=diff
==============================================================================
--- subversion/branches/svn-info-detail/subversion/tests/cmdline/basic_tests.py 
(original)
+++ subversion/branches/svn-info-detail/subversion/tests/cmdline/basic_tests.py 
Mon Feb 16 12:53:47 2015
@@ -3083,32 +3083,6 @@ def peg_rev_on_non_existent_wc_path(sbox
                                      'cat', '-r2', sbox.ospath('mu3') + '@3')
 
 
-@Issue(4299)
-def basic_youngest(sbox):
-  'basic youngest'
-
-  sbox.build(read_only=True)
-
-  repos_url = sbox.repo_url
-  deep_repos_url = repos_url + '/A/D/G'
-
-  wc_dir = sbox.wc_dir
-  deep_wc_dir = os.path.join(wc_dir, 'A', 'B', 'E', 'alpha')
-  bad_wc_dir = os.path.join(wc_dir, 'Z')
-
-  svntest.actions.run_and_verify_svn(None, svntest.verify.AnyOutput,
-                                     'youngest', bad_wc_dir)
-
-  for flag, output in [(False, "1\n"), (True, "1")]:
-    for path in [repos_url, deep_repos_url, wc_dir, deep_wc_dir]:
-      if flag:
-        svntest.actions.run_and_verify_svn([output], [],
-                                           'youngest', '--no-newline', path)
-      else:
-        svntest.actions.run_and_verify_svn([output], [],
-                                           'youngest', path)
-
-
 # With 'svn mkdir --parents' the target directory may already exist on disk.
 # In that case it was wrongly performing a recursive 'add' on its contents.
 def mkdir_parents_target_exists_on_disk(sbox):
@@ -3202,7 +3176,6 @@ test_list = [ None,
               rm_missing_with_case_clashing_ondisk_item,
               delete_conflicts_one_of_many,
               peg_rev_on_non_existent_wc_path,
-              basic_youngest,
               mkdir_parents_target_exists_on_disk,
              ]
 

Modified: 
subversion/branches/svn-info-detail/subversion/tests/cmdline/getopt_tests_data/svn--help_stdout
URL: 
http://svn.apache.org/viewvc/subversion/branches/svn-info-detail/subversion/tests/cmdline/getopt_tests_data/svn--help_stdout?rev=1660103&r1=1660102&r2=1660103&view=diff
==============================================================================
--- 
subversion/branches/svn-info-detail/subversion/tests/cmdline/getopt_tests_data/svn--help_stdout
 (original)
+++ 
subversion/branches/svn-info-detail/subversion/tests/cmdline/getopt_tests_data/svn--help_stdout
 Mon Feb 16 12:53:47 2015
@@ -46,7 +46,6 @@ Available subcommands:
    unlock
    update (up)
    upgrade
-   youngest
 
 Subversion is a tool for version control.
 For additional information, see http://subversion.apache.org/

Modified: 
subversion/branches/svn-info-detail/subversion/tests/cmdline/getopt_tests_data/svn_help_stdout
URL: 
http://svn.apache.org/viewvc/subversion/branches/svn-info-detail/subversion/tests/cmdline/getopt_tests_data/svn_help_stdout?rev=1660103&r1=1660102&r2=1660103&view=diff
==============================================================================
--- 
subversion/branches/svn-info-detail/subversion/tests/cmdline/getopt_tests_data/svn_help_stdout
 (original)
+++ 
subversion/branches/svn-info-detail/subversion/tests/cmdline/getopt_tests_data/svn_help_stdout
 Mon Feb 16 12:53:47 2015
@@ -46,7 +46,6 @@ Available subcommands:
    unlock
    update (up)
    upgrade
-   youngest
 
 Subversion is a tool for version control.
 For additional information, see http://subversion.apache.org/


Reply via email to