Fix pattern-matching of the top level path in a listing with search.
svn list -v PATH --search=PATTERN
The output for the top level PATH will now be included when a PATTERN matches the last component of its path-within-repository, or the empty string for the repository root path. This is consistent with matching all other paths in the listing.
Until now, and since the feature was introduced in r1767186, the top level path was reported only when a pattern matched the entire path-within-repository, starting with "/", of PATH's *parent* directory. For example, svn ls -v ^/subversion/trunk/README --search=PATTERN reported the top-level path only if PATTERN matched "/subversion/trunk".
Note that "-v" is specified in these examples because otherwise "svn" omits the top-level path when it is a directory.
* subversion/libsvn_client/list.c (list_internal): Match the basename, not the dirname, of the top level path.