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

Re: svn list support for listing directory entries only

From: Ryan Schmidt <subversion-2014_at_ryandesign.com>
Date: Sat, 3 May 2014 22:35:39 -0500

On May 3, 2014, at 22:32, Ryan Schmidt wrote:

> On May 3, 2014, at 21:25, Dan Ellis wrote:
>
>> Its really a performance concern. We need to do this fairly regularly on a large repository (over a WAN I might add) and asking the server for all files and directories when we really only need a directory listing is really a huge time sink (a 100:1 file to directory ratio would result in a listing time of 100 times slower). Grep and the like only format the output on the client side (which is easily parsable - we do use xml to parse) and don't relieve the performance burden.
>
> Ok. You’re right, that capability is not built in. You could write a small program to do it (using the Subversion language bindings for the language of your choice).

Actually that’s speculation. I don’t know the Subversion libraries, and it’s entirely possible they don’t provide a way to do this; they may just give you the entire directory listing, leaving you with having to discard the non-directories. And that in turn may turn out to be because the server has no API for giving you anything other than a full directory listing; I’m not sure.
Received on 2014-05-04 05:36:19 CEST

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

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