Re: svn ls --search/pattern/glob/case-insensitive
From: Stefan Sperling <stsp_at_elego.de>
Date: Fri, 1 Sep 2017 16:42:08 +0200
On Fri, Sep 01, 2017 at 03:01:33PM +0100, Julian Foad wrote:
The most important point for me is that I don't think appending and
Consider a revision such as:
$ svn log -r 3 -v
the quick brown fox jumps over the lazy dog
The behaviour for log --search is that either '--search lazy' or
$ svn log --search dog
the quick brown fox jumps over the lazy dog
the quick brown fox jumps over the lazy dog
However, when matching paths with 'svn ls' I would not expect 'dog*' to
The current behaviour as implemented by --pattern looks like:
$ svn ls -r3 --pattern 'dog*' ^/
The above behaviour looks good to me.
However, as you already pointed out, matching child path components
$ svn ls -r3 --pattern 'trunk/*'
These should print:
trunk/dog.txt
There is of course an interaction with --depth to consider.
$ svn ls -R -r3 --pattern '*dog*' ^/
Which suggests that matching happens after depth filtering.
Regarding case:
If 'list --search' is designed to be case-insensitive, then this:
$ svn ls -r3 --pattern 'Dog*' ^/trunk
should print:
dog.txt
If it was case-sensitive, I would use:
$ svn ls -r3 --pattern '[dD]og*' ^/trunk
I could live with either possibility.
|
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.