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

Re: Listing "projects" in a svn repository

From: B Smith-Mannschott <bsmith.occs_at_gmail.com>
Date: Tue, 17 Feb 2009 18:55:38 +0100

On Mon, Feb 16, 2009 at 11:04, Geir Engebakken <geir.engebakken_at_edb.com> wrote:
> We have a large svn repository with "projects" defined in various directory
> levels. One structure that is inposed on the projects is that every project
> should have trunk/branches and tags as subdirectories.
>
> Now I want to get a list of all the projects. I guess this will work :
>
> svn ls URL --depth=infinity | grep branches
>
> Any other way to get the same info without having to traverse the entire
> repository?

In my repository, I use a similar definition of "project": A project
is something with trunk/tags/branches. You might therefore find the
--project option of my svnurl.py script useful:

svnurl --project --all [ --url | --name ] [DIR]
svnurl -p -a [ -u | -n ] [DIR]
  List the urls (or names) of all projects in the designated
  repository.

Source here:

http://github.com/bpsm/svnurl/tree/master

It's just one file, so you can grab it via your browser without
needing to grok git.

// Ben

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1180165

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-02-17 18:56:46 CET

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