[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r1026475 - in /subversion/trunk/subversion: svn/ tests/cmdline/ tests/cmdline/getopt_tests_data/

From: Julian Foad <julian.foad_at_wandisco.com>
Date: Mon, 25 Oct 2010 10:02:55 +0100

> URL: http://svn.apache.org/viewvc?rev=1026475&view=rev
> Log:
> Add an 'svn relocate' first-class subcommand. For too long has relocate
> functionality has been awkwardly tacked onto the back of 'svn switch'.

Lovely. The help makes it so much clearer because no options are listed
in the help for 'svn relocate', whereas the old help for 'svn switch
[--relocate]' lists a whole bunch of options and doesn't indicate
whether they're applicable.

The old output of 'svn sw --help' already didn't fit on my 63-line
screen, so in r1026969 and r1026978 I abbreviated the "syntax 2" output
to:

  2. The '--relocate' option is deprecated. This syntax is equivalent to
     'svn relocate FROM-PREFIX TO-PREFIX [PATH]'.

The 'switch' help still doesn't fit on my screen :-( but that's a
separate issue.

- Julian

[...]
> Modified: subversion/trunk/subversion/svn/main.c
> ==============================================================================
> --- subversion/trunk/subversion/svn/main.c (original)
> +++ subversion/trunk/subversion/svn/main.c Fri Oct 22 20:10:36 2010
> @@ -999,6 +999,29 @@ const svn_opt_subcommand_desc2_t svn_cl_
> opt_force, opt_changelist },
> {{'F', N_("read property value from file ARG")}} },
>
> + { "relocate", svn_cl__relocate, {0}, N_
> + ("Relocate the working copy to point to a different URL.\n"
> + "usage: 1. relocate FROM-PREFIX TO-PREFIX [PATH...]\n"
> + " 2. relocate TO-URL [PATH]\n"
> + "\n"
> + " Rewrite working copy URL metadata to reflect a syntactic change only.\n"
> + " This is used when repository's root URL changes (such as a scheme\n"
> + " or hostname change) but your working copy still reflects the same\n"
> + " directory within the same repository.\n"
> + "\n"
> + " 1. FROM-PREFIX and TO-PREFIX are initial substrings of the working\n"
> + " copy's current and new URLs, respectively. (You may specify the\n"
> + " complete old and new URLs if you wish.) Use 'svn info' to determine\n"
> + " the current working copy URL.\n"
> + "\n"
> + " 2. TO-URL is the (complete) new repository URL to use for for PATH.\n"
> + "\n"
> + " Examples:\n"
> + " svn relocate http:// svn:// project1 project2\n"
> + " svn relocate http://www.example.com/repo/project \\\n"
> + " svn://svn.example.com/repo/project\n"),
> + {0} },
> +

> @@ -1152,10 +1175,13 @@ const svn_opt_subcommand_desc2_t svn_cl_
> " This is used when a repository's root URL changes (such as a scheme\n"
> " or hostname change) but your working copy still reflects the same\n"
> " directory within the same repository. FROM-PREFIX and TO-PREFIX are\n"
> - " initial substrings of the working copy's current and new root URLs,\n"
> - " respectively. (You may specify the complete old and new root URLs if\n"
> - " you wish.) Use 'svn info' to determine the current repository root\n"
> - " URL of the working copy.\n"
> + " initial substrings of the working copy's current and new URLs,\n"
> + " respectively. (You may specify the complete old and new URLs if you\n"
> + " wish.) Use 'svn info' to determine the current working copy URL.\n"
> + "\n"
> + " Note: This syntax form -- in fact, the use of the --relocate option\n"
> + " in general -- has been deprecated in favor of running\n"
> + " 'svn relocate FROM-PREFIX TO-PREFIX [PATH]'.\n"
Received on 2010-10-25 11:03:40 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.