[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: Geir Engebakken <geir.engebakken_at_edb.com>
Date: Wed, 18 Feb 2009 11:41:36 +0100

This worked perfectly, just what I wanted, thanks a lot!

Geir

-----Original Message-----
From: B Smith-Mannschott [mailto:bsmith.occs_at_gmail.com]
Sent: 17. februar 2009 18:56
To: Engebakken Geir
Cc: users_at_subversion.tigris.org
Subject: Re: Listing "projects" in a svn repository

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=1184988

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-02-18 14:07:54 CET

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.