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

Re: use svn list to show only directories

From: Ryan Schmidt <subversion-2006q2_at_ryandesign.com>
Date: 2006-05-28 19:38:10 CEST

On May 26, 2006, at 16:45, mike nicholaides wrote:

> I have a repo with 9500 files and 2300 directories. I want to get a
> list of the just the directories. I know how to use svn list with a
> filter for file name extensions (like svn list *.html), but I don't
> know how to do a filter that matches just directories.
> I've tried doing just "svn list --recursive", and then filtering out
> the directories, but subversion takes far too long to do that. Would
> listing just the directories actually be quicker, like I'm hoping?

I don't know of a built-in way to do that. Subversion offers language
bindings for Perl, Python, Ruby, PHP, Java and other languages, and
writing a script in one of those languages using those bindings may
run significantly faster than parsing output at the command line.

> Also, I want to avoid using svnlook to do this, because according to
> the documentation, you can only use svnlook with a file:// URL.

The documentation should say that svnlook does not work with any URLs
at all and requires a local filesystem path, as in

svnlook ... /path/to/repository

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun May 28 19:39:03 2006

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.