Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I determine the type of SVN repository I have?

How can I determine the type of file system that is used by a given SVN repository? I want to create a new repository with svnadmin but want to make sure I am creating my new repository with consistent settings to other repositories already on the server.

I dont want to setup a berkley db repository if all the others are FSFS on the system.

Can I reliably just look in /repositoryname/db/fs-type ?

like image 659
MikeJ Avatar asked Feb 15 '10 22:02

MikeJ


People also ask

How do I list 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”.

What are svn repositories?

A Subversion repository — abbreviated SVN repository — is a database filled with your code, files, and other project assets. A SVN repository maintains a complete history of every change ever made.

What is TortoiseSVN repository?

This database is referred to as the repository. The repository normally lives on a file server running the Subversion server program, which supplies content to Subversion clients (like TortoiseSVN) on request. If you only back up one thing, back up your repository as it is the definitive master copy of all your data.


2 Answers

If you're using a modern version of Subversion, the default is FSFS and has been for quite some time. Looking at db/fs-type is a reliable method of determining what you have already set up.

like image 122
Greg Hewgill Avatar answered Sep 20 '22 18:09

Greg Hewgill


svnadmin list-dblogs /path/to/repo will list nothing if there are no db logs (ie. not berkely db). i dont know how failsafe that is though because if nothing has been done then there might not be any logs (? - not sure because i always use fsfs). PErhaps using this combined with look directly at the db dir on the filesystem would be accurat, though i can tthink of a case where the element on the fs wouldnt be accurate.

like image 22
prodigitalson Avatar answered Sep 17 '22 18:09

prodigitalson