Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Listing all SVN repositories

Tags:

svn

In subversion is there a command to list all the available repositories registered on a particular host?

Eg. in ClearCase, a cleartool lsvob would give me the listing of all the versioned databases in a given region. I have not been able to find anything akin to this in subversion.

like image 706
Critical Skill Avatar asked Oct 09 '09 02:10

Critical Skill


People also ask

How do I list all svn repositories?

svn list is most useful if you want to see what files a repository has without downloading a working copy: $ svn list http://svn.red-bean.com/repos/test/support README. txt INSTALL examples/ … For further details, see the earlier section the section called “Listing versioned directories”.

How do I check svn repository?

Check out files from Subversion repositoryIn the Get from Version Control dialog, click Add Repository Location and specify the repository URL. Click Check Out. In the dialog that opens, specify the destination directory where the local copy of the repository files will be created, and click OK.


2 Answers

No. Each subversion repository is independent and knows nothing about the others. There would be no way to locate all of the subversion repositories.

We keep all of our repositories in a standard location (/data/svn) and can easily and programatically list all of the repositories:

ls /data/svn

Or from a remote system:

ssh svn ls /data/svn
like image 128
Adam Batkin Avatar answered Nov 11 '22 19:11

Adam Batkin


SVN repos have a distinct structure (/conf, /hooks, /db, /locks), so searching for one if its components would be a start.

If locate/updatedb is installed and current:

locate /db | grep /db$

Or by an exhaustive search:

find / -type d | grep /db$

A more sophisticated search would check for the full set of components.

like image 23
BobC Avatar answered Nov 11 '22 21:11

BobC