Checkout
stefan2
committed
on 30 Oct 16
Add support for the "--search" option to the 'list' command down to the
svn_client level. Provide a simple test for it.

* subversion/inclu… Show more
Add support for the "--search" option to the 'list' command down to the

svn_client level.  Provide a simple test for it.

* subversion/include/svn_client.h

 (svn_client_list4): Rev API, adding the PATTERNS parameter.

 (svn_client_list3): Deprecate.

* subversion/libsvn_client/deprecated.c

 (svn_client_list3): Implement the deprecated API in terms of the new one.

* subversion/libsvn_client/list.c

 (match_patterns): New utility function handling the pattern matching.

 (get_dir_contents,

  list_internal): Add PATTERNS parameter and filter outout accordingly.

 (list_external_items,

  list_externals): Add PATTERNS parameter and pass it along.

 (svn_client_list4): Bump signature and pass parameters on.

* subversion/svn/list-cmd.c

 (svn_cl__list): Gather the --search patterns and pass them to the rev'ed

                 client API.

* subversion/svn/svn.c

 (svn_cl__cmd_table): Enabled the '--search' option for 'list'.

* subversion/tests/cmdline/list_tests.py

 (list_filtered): New test.

 (test_list): Register the new test. Show less