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

RE: svn list -R with directories only

From: Fisk, Lee Ann <lafisk_at_sandia.gov>
Date: 2007-01-06 20:33:29 CET

That's clever. It wasn't obvious to me that directory
names would always end in '/'. Thank you. Lee Ann

-----Original Message-----
From: Ed Price [mailto:ed.price@gmail.com]
Sent: Fri 1/5/2007 6:50 PM
To: Fisk, Lee Ann
Cc: dev@subversion.tigris.org
Subject: Re: svn list -R with directories only
 
I answered a similar question on svn-users recently.

svn ls -R $URL | grep '/$'

http://svn.haxx.se/users/archive-2006-10/0946.shtml

If you want to do it more *efficiently*, sorry, no idea :)
(But based on the description of your change, it sounds
like that wasn't actually the issue, as you changed
the client not the server, IIUC?)

-Ed

On 1/5/07, Lee Ann Fisk <lafisk@sandia.gov> wrote:
> Hello. I wanted to list all the directories in a
> new svn repository I am working with. It has a huge
> number of files. I could find no way to list the
> directories only. I found a similar question on
> users@ from several months ago that did not have
> a reply. I searched your issues and did not find
> it listed.
>
> I was able to recompile svn 1.4.2 with a one line change
> in subversion/libsvn_client/list.c in get_dir_contents() so
> that "svn list -R URL" would omit non-directories. Looking
> through this listing I am only now beginning to understand
> the repository I am trying to work with. (By
> the way - thank you having such well organized easy
> to read code - that is what made it easy to change.)
>
> It would be great to have a --directoriesOnly type
> of option to "svn list".
>
> Lee Ann Riesen
>
>
> --
> ====================================================
> Lee Ann Riesen, Sandia National Laboratories, NM, USA
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org
>
>
Received on Sat Jan 6 20:34:20 2007

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