[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Subversion 1.10 RC1?

From: Stefan Fuhrmann <stefan2_at_apache.org>
Date: Sun, 3 Dec 2017 22:46:33 +0100

On 22.11.2017 15:48, Evgeny Kotkov wrote:
> The other two features that I remember, are:
>
> * improved authz with support for wildcards
>
> * server-side search with `svn ls --search`
>
> Speaking of the `ls --search`, I think that there is an issue with the
> command-line parsing. Based on what I see, the --search argument may
> be interpreted as the target for listing, but not as the search pattern:
>
> svn ls --search *
>
> svn: warning: apr_err=SVN_ERR_WC_PATH_NOT_FOUND
> svn: warning: W155010: The node 'C:\Project\unversioned' was not found.
> ..\..\..\subversion\svn\list-cmd.c:453: (apr_err=SVN_ERR_ILLEGAL_TARGET)
> svn: E200009: Could not list all targets because some targets don't exist
>
> svn ls http://spbvo-ws09.ostyserver.net:8080/svn/master2 --search *
> svn: E155007: 'C:\AnotherProject' is not a working copy

There seems to be little that could be done here (suggestions welcome).
The problem is that the asterisk is being expanded by the shell itself.
I made SVN print its command line parameters and this is the result:

        $ ./subversion/svn/svn ls svn://localhost/kde --search M*
        0: ./subversion/svn/svn
        1: ls
        2: svn://localhost/kde
        3: --search
        4: Makefile
        5: Makefile.in

That can be prevented by adding quotation marks:

        $ ./subversion/svn/svn ls svn://localhost/kde --search "M*"
        0: ./subversion/svn/svn
        1: ls
        2: svn://localhost/kde
        3: --search
        4: M*

So, I extended the user docstring accordingly in r1817053.

-- Stefan^2.
Received on 2017-12-03 22:46:39 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.