Checkout
stefan2
committed
on 30 Oct 16
Make the new svn_repos_list easier to use with typical client requests.

Instead of a single pattern, accept an array of alternative pattern… Show more
Make the new svn_repos_list easier to use with typical client requests.

Instead of a single pattern, accept an array of alternative patterns of

which at least one must match if any patterns are given.  Sort the output

by path to make it match the client-side implementation's output order.

* subversion/include/svn_repos.h

 (svn_repos_list):  We now support multiple glob patterns and sort the

                    output.

* subversion/libsvn_repos/list.c

 (matches_any):  New utility function for matching against an array

                 instead of a single pattern.

 (report_dirent):  For efficiency reasons, we now filter early before

                   calling this reporter function.

 (filtered_dirent_t,

  compare_filtered_dirent): New filtering and sorting support.

 (do_list):  Support multiple PATTERNS.  Filter and sort the data before

             processing it further.

 (svn_repos_list):  Update signature, filtering and passing of parameters.

* subversion/tests/libsvn_repos/repos-test.c

 (test_list):  Adapt test case to interface change. Show less