On Thu, Jul 23, 2020 at 08:05:12AM -0700, Kenneth Porter wrote:
> --On Thursday, July 23, 2020 12:54 PM +0200 Stefan Sperling <s...@elego.de>
> wrote:
> 
> > Are you aware of the built-in svn list --search feature, which has
> > been available since SVN 1.10.0?
> > 
> > For example:
> > 
> > $ svn list --depth=infinity --search svn.c ^/subversion/trunk
> > subversion/svn/svn.c
> > $
> > 
> > Also as of SVN 1.10 the server supports a special-purpose 'list' request
> > to speed this up.
> > 
> > In any case, the fastest way to search will likely be with a file:// URL,
> > assuming you can get direct access to the repository for this purpose.
> 
> I was not. Very nice, particularly the pattern matching. Can I determine the
> server version remotely to see if this is supported?

Some servers will advertise the SVN version on pages which can be visited
with a web browser. But this depends on the server's configuration. You may
have to ask the administrator to be sure about the server's exact version.

If the server supports the feature it will send an "svn/list" DAV header.
The full capability string to look for in a trace of an SVN HTTP session
would be: "http://subversion.tigris.org/xmlns/dav/svn/list";

I suppose the easiest way forward might be to simply try it out and see
how long it takes.

> (Alas, I don't have
> direct access.) Is the globbing done on the server with the 1.10 support?

Yes, globbing would be done on the server side.

Reply via email to