Checkout Tools
  • last updated 2 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Change the svn_*_list APIs to use NULL as the "don't filter by pattern"

parameter instead of an empty pattern list.

Suggested by: Patrick Steinhardt (patrick.steinhardt at elegosoft.com)

* subversion/include/svn_repos.h

(svn_repos_list): Document the new PATTERN options behavior.

* subversion/libsvn_repos/list.c

(matches_any): Implement the new behavior.

(svn_repos_list): Empty lists will almost always be created by dumb

scripts. It's probably a good idea to explicitly

not waste any resources in the degenerate case.

* subversion/include/svn_ra.h

(svn_ra_list): Document the new PATTERN options behavior.

* subversion/libsvn_ra_svn/protocol

(3.1.1. Main Command Set): The patterns list in the list command is

now optional.

* subversion/libsvn_subr/log.c

(svn_log__list): Make the logging cope with NULL pattern lists.

* subversion/svnserve/serve.c

(list): Receive NULL for PATTERNS, if no list was received.

* subversion/libsvn_ra_svn/client.c

(ra_svn_list): Omit the pattern list entirely, if patterns is NULL.

* subversion/include/svn_client.h

(svn_client_list4): Document the new PATTERN options behavior.

(svn_client_list3): Update docstring.

* subversion/libsvn_client/deprecated.c

(svn_client_list3): Update implementation.

* subversion/libsvn_client/list.c

(match_patterns): Implement the new behavior.

(list_internal): Update docstring.

* subversion/svn/list-cmd.c

(svn_cl__list): If no patterns were specified, pass NULL to the API.

* subversion/svnbench/null-list-cmd.c

(svn_cl__null_list): Same.

  1. … 11 more files in changeset.
Add '--search' option support to 'svnbench null-list'.

This replicates features already implemented for 'svn list'.

* subversion/svnbench/cl.h

(svn_cl__opt_state_t): Copy SEARCH_PATTERNS from the standard CL client.

* subversion/svnbench/null-list-cmd.c

(svn_cl__null_list): Process the search patterns just like in 'svn'.

* subversion/svnbench/svnbench.c

(svn_cl__longopt_t,

svn_cl__options,

svn_cl__cmd_table,

add_search_pattern_group,

sub_main): Replicate svn's '--search' option.

  1. … 2 more files in changeset.
Port r1673153 to svnbench from svn: request only required directory fields in

'svnbench null-list' to have the same performance as 'svn ls'.

* subversion/svnbench/null-list-cmd.c

(print_dirent_fields, print_dirent_fields_verbose): New constant variables.

(svn_cl__null_list): Only request the required fields.

Update help texts in svnbench to reflect the tool rename.

* subversion/svnbench/help-cmd.c

(svn_cl__help): Say "svnbench" instead of "svn-bench".

* subversion/svnbench/null-info-cmd.c

(svn_cl__null_info): Same.

* subversion/svnbench/null-list-cmd.c

(svn_cl__null_list): Same.

* subversion/svnbench/null-log-cmd.c

(svn_cl__null_log): Same.

* subversion/svnbench/svnbench.c

(sub_main,

main): Same.

  1. … 4 more files in changeset.