René Nyffenegger's collection of things on the web
René Nyffenegger on Oracle - Most wanted - Feedback -
 

Subversion: Creating a repository

Note: this page is part of Subversion basic operations.
The repository is a collection of files that make it possible to store all commited revisions of files under version control. With Subversion, they're all conviniently stored under a directory which is created with svnadmin:
C:\some_dir>svnadmin create --fs-type fsfs \svn_repository
Although the repository is opaque and its layout only of marginal interest, one might still wonder what it contains:
C:\some_dir>dir \svn_repository
 Volume in drive C has no label.
 Volume Serial Number is EC22-DD8D

 Directory of C:\svn_repository

01.12.2004  23:46    <DIR>          .
01.12.2004  23:46    <DIR>          ..
01.12.2004  23:46    <DIR>          conf
01.12.2004  23:46    <DIR>          dav
01.12.2004  23:46    <DIR>          db
01.12.2004  23:46                 2 format
01.12.2004  23:46    <DIR>          hooks
01.12.2004  23:46    <DIR>          locks
01.12.2004  23:46               388 README.txt
svnlook youngest displays the latest (=youngest) revision. Up to now, no commit made, revision still 0:
C:\some_dir>svnlook youngest \svn_repository
0
svnlook tree shows the hierarchical layout of what is stored in a repository. Up to now: no project added, only tree's root here:
C:\some_dir>svnlook tree \svn_repository
/