diff options
author | James McCoy <jamessan@debian.org> | 2018-10-02 21:50:32 -0400 |
---|---|---|
committer | James McCoy <jamessan@debian.org> | 2018-10-02 21:50:32 -0400 |
commit | 784e881a5aaa645a37eda4fb775484f27c81143a (patch) | |
tree | 3702672116cb73f976a31fd30a57824e12339050 /subversion/svnbench/svnbench.c | |
parent | fb8514369ffb04ec2aea8d8ee7916fdff101b84e (diff) | |
parent | db2274467e932f2ac8f15a9372bbe32aa4fdfeb1 (diff) |
Update to upstream 1.11.0~rc2
[git-debrebase anchor: new upstream 1.11.0~rc2, merge]
Diffstat (limited to 'subversion/svnbench/svnbench.c')
-rw-r--r-- | subversion/svnbench/svnbench.c | 92 |
1 files changed, 49 insertions, 43 deletions
diff --git a/subversion/svnbench/svnbench.c b/subversion/svnbench/svnbench.c index 80a8728..33e7b69 100644 --- a/subversion/svnbench/svnbench.c +++ b/subversion/svnbench/svnbench.c @@ -206,111 +206,117 @@ const int svn_cl__global_options[] = opt_config_dir, opt_config_options, 0 }; -const svn_opt_subcommand_desc2_t svn_cl__cmd_table[] = +const svn_opt_subcommand_desc3_t svn_cl__cmd_table[] = { - { "help", svn_cl__help, {"?", "h"}, N_ - ("Describe the usage of this program or its subcommands.\n" - "usage: help [SUBCOMMAND...]\n"), + { "help", svn_cl__help, {"?", "h"}, {N_( + "Describe the usage of this program or its subcommands.\n" + "usage: help [SUBCOMMAND...]\n" + )}, {0} }, /* This command is also invoked if we see option "--help", "-h" or "-?". */ - { "null-blame", svn_cl__null_blame, {0}, N_ - ("Fetch all versions of a file in a batch.\n" + { "null-blame", svn_cl__null_blame, {0}, {N_( + "Fetch all versions of a file in a batch.\n" "usage: null-blame [-rM:N] TARGET[@REV]...\n" - "\n" + "\n"), N_( " With no revision range (same as -r0:REV), or with '-r M:N' where M < N,\n" " annotate each line that is present in revision N of the file, with\n" " the last revision at or before rN that changed or added the line,\n" " looking back no further than rM.\n" - "\n" + "\n"), N_( " With a reverse revision range '-r M:N' where M > N,\n" " annotate each line that is present in revision N of the file, with\n" " the next revision after rN that changed or deleted the line,\n" " looking forward no further than rM.\n" - "\n" + "\n"), N_( " If specified, REV determines in which revision the target is first\n" " looked up.\n" - "\n" - " Write the annotated result to standard output.\n"), + "\n"), N_( + " Write the annotated result to standard output.\n" + )}, {'r', 'g'} }, - { "null-export", svn_cl__null_export, {0}, N_ - ("Create an unversioned copy of a tree.\n" + { "null-export", svn_cl__null_export, {0}, {N_( + "Create an unversioned copy of a tree.\n" "usage: null-export [-r REV] URL[@PEGREV]\n" - "\n" + "\n"), N_( " Exports a clean directory tree from the repository specified by\n" " URL, at revision REV if it is given, otherwise at HEAD.\n" - "\n" + "\n"), N_( " If specified, PEGREV determines in which revision the target is first\n" - " looked up.\n"), + " looked up.\n" + )}, {'r', 'q', 'N', opt_depth} }, - { "null-list", svn_cl__null_list, {"ls"}, N_ - ("List directory entries in the repository.\n" + { "null-list", svn_cl__null_list, {"ls"}, {N_( + "List directory entries in the repository.\n" "usage: null-list [TARGET[@REV]...]\n" - "\n" + "\n"), N_( " List each TARGET file and the contents of each TARGET directory as\n" " they exist in the repository. If TARGET is a working copy path, the\n" " corresponding repository URL will be used. If specified, REV determines\n" " in which revision the target is first looked up.\n" - "\n" + "\n"), N_( " The default TARGET is '.', meaning the repository URL of the current\n" " working directory.\n" - "\n" + "\n"), N_( " With --verbose, the following fields will be fetched for each item:\n" - "\n" + "\n"), N_( " Revision number of the last commit\n" " Author of the last commit\n" " If locked, the letter 'O'. (Use 'svn info URL' to see details)\n" " Size (in bytes)\n" - " Date and time of the last commit\n"), + " Date and time of the last commit\n" + )}, {'r', 'v', 'q', 'R', opt_depth, opt_search} }, - { "null-log", svn_cl__null_log, {0}, N_ - ("Fetch the log messages for a set of revision(s) and/or path(s).\n" + { "null-log", svn_cl__null_log, {0}, {N_( + "Fetch the log messages for a set of revision(s) and/or path(s).\n" "usage: 1. null-log [PATH][@REV]\n" " 2. null-log URL[@REV] [PATH...]\n" - "\n" + "\n"), N_( " 1. Fetch the log messages for the URL corresponding to PATH\n" " (default: '.'). If specified, REV is the revision in which the\n" " URL is first looked up, and the default revision range is REV:1.\n" " If REV is not specified, the default revision range is BASE:1,\n" " since the URL might not exist in the HEAD revision.\n" - "\n" + "\n"), N_( " 2. Fetch the log messages for the PATHs (default: '.') under URL.\n" " If specified, REV is the revision in which the URL is first\n" " looked up, and the default revision range is REV:1; otherwise,\n" " the URL is looked up in HEAD, and the default revision range is\n" " HEAD:1.\n" - "\n" + "\n"), N_( " Multiple '-c' or '-r' options may be specified (but not a\n" " combination of '-c' and '-r' options), and mixing of forward and\n" " reverse ranges is allowed.\n" - "\n" + "\n"), N_( " With -v, also print all affected paths with each log message.\n" " With -q, don't print the log message body itself (note that this is\n" " compatible with -v).\n" - "\n" + "\n"), N_( " Each log message is printed just once, even if more than one of the\n" " affected paths for that revision were explicitly requested. Logs\n" " follow copy history by default. Use --stop-on-copy to disable this\n" - " behavior, which can be useful for determining branchpoints.\n"), + " behavior, which can be useful for determining branchpoints.\n" + )}, {'r', 'q', 'v', 'g', 'c', opt_targets, opt_stop_on_copy, 'l', opt_with_all_revprops, opt_with_no_revprops, opt_with_revprop,}, {{opt_with_revprop, N_("retrieve revision property ARG")}, {'c', N_("the change made in revision ARG")}} }, - { "null-info", svn_cl__null_info, {0}, N_ - ("Display information about a local or remote item.\n" + { "null-info", svn_cl__null_info, {0}, {N_( + "Display information about a local or remote item.\n" "usage: null-info [TARGET[@REV]...]\n" - "\n" + "\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"), + " determines in which revision the target is first looked up.\n" + )}, {'r', 'R', opt_depth, opt_targets, opt_changelist} }, - { NULL, NULL, {0}, NULL, {0} } + { NULL, NULL, {0}, {NULL}, {0} } }; @@ -389,7 +395,7 @@ sub_main(int *exit_code, int argc, const char *argv[], apr_pool_t *pool) svn_client_ctx_t *ctx; apr_array_header_t *received_opts; int i; - const svn_opt_subcommand_desc2_t *subcommand = NULL; + const svn_opt_subcommand_desc3_t *subcommand = NULL; svn_cl__cmd_baton_t command_baton; svn_auth_baton_t *ab; svn_config_t *cfg_config; @@ -722,7 +728,7 @@ sub_main(int *exit_code, int argc, const char *argv[], apr_pool_t *pool) just typos/mistakes. Whatever the case, the subcommand to actually run is svn_cl__help(). */ if (opt_state.help) - subcommand = svn_opt_get_canonical_subcommand2(svn_cl__cmd_table, "help"); + subcommand = svn_opt_get_canonical_subcommand3(svn_cl__cmd_table, "help"); /* If we're not running the `help' subcommand, then look for a subcommand in the first argument. */ @@ -733,8 +739,8 @@ sub_main(int *exit_code, int argc, const char *argv[], apr_pool_t *pool) if (opt_state.version) { /* Use the "help" subcommand to handle the "--version" option. */ - static const svn_opt_subcommand_desc2_t pseudo_cmd = - { "--version", svn_cl__help, {0}, "", + static const svn_opt_subcommand_desc3_t pseudo_cmd = + { "--version", svn_cl__help, {0}, {""}, {opt_version, /* must accept its own option */ 'q', /* brief output */ 'v', /* verbose output */ @@ -759,7 +765,7 @@ sub_main(int *exit_code, int argc, const char *argv[], apr_pool_t *pool) SVN_ERR(svn_utf_cstring_to_utf8(&first_arg, os->argv[os->ind++], pool)); - subcommand = svn_opt_get_canonical_subcommand2(svn_cl__cmd_table, + subcommand = svn_opt_get_canonical_subcommand3(svn_cl__cmd_table, first_arg); if (subcommand == NULL) { @@ -786,12 +792,12 @@ sub_main(int *exit_code, int argc, const char *argv[], apr_pool_t *pool) if (opt_id == 'h' || opt_id == '?') continue; - if (! svn_opt_subcommand_takes_option3(subcommand, opt_id, + if (! svn_opt_subcommand_takes_option4(subcommand, opt_id, svn_cl__global_options)) { const char *optstr; const apr_getopt_option_t *badopt = - svn_opt_get_option_from_code2(opt_id, svn_cl__options, + svn_opt_get_option_from_code3(opt_id, svn_cl__options, subcommand, pool); svn_opt_format_option(&optstr, badopt, FALSE, pool); if (subcommand->name[0] == '-') |