You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by mike nicholaides <mi...@gmail.com> on 2006/05/26 14:45:40 UTC
use svn list to show only directories
Hey guys,
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?
Also, I want to avoid using svnlook to do this, because according to
the documentation, you can only use svnlook with a file:// URL.
Any suggestions?
Mike
Re: use svn list to show only directories
Posted by Ryan Schmidt <su...@ryandesign.com>.
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