11.07.2015 Views

Version Control with Subversion - Login

Version Control with Subversion - Login

Version Control with Subversion - Login

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Repository Administrationsvnadminbriefly examine some of the utilities included in the Berkeley DB distribution that providefunctionality specific to your repository's database backend not otherwise provided by <strong>Subversion</strong>'sown tools.The svnadmin program is the repository administrator's best friend. Besides providing theability to create <strong>Subversion</strong> repositories, this program allows you to perform several maintenanceoperations on those repositories. The syntax of svnadmin is similar to that of other<strong>Subversion</strong> command-line programs:$ svnadmin helpgeneral usage: svnadmin SUBCOMMAND REPOS_PATH [ARGS & OPTIONS ...]Type 'svnadmin help ' for help on a specific subcommand.Type 'svnadmin --version' to see the program version and FS modules.Available subcommands:crashtestcreatedeltify…svnlookPreviously in this chapter (in the section called “Creating the Repository”), we were introducedto the svnadmin create subcommand. Most of the other svnadmin subcommandswe will cover later in this chapter. And you can consult the section called “svnadmin” for afull rundown of subcommands and what each of them offers.svnlook is a tool provided by <strong>Subversion</strong> for examining the various revisions and transactions(which are revisions in the making) in a repository. No part of this program attemptsto change the repository. svnlook is typically used by the repository hooks for reporting thechanges that are about to be committed (in the case of the pre-commit hook) or that werejust committed (in the case of the post-commit hook) to the repository. A repository administratormay use this tool for diagnostic purposes.svnlook has a straightforward syntax:$ svnlook helpgeneral usage: svnlook SUBCOMMAND REPOS_PATH [ARGS & OPTIONS ...]Note: any subcommand which takes the '--revision' and '--transaction'options will, if invoked <strong>with</strong>out one of those options, act onthe repository's youngest revision.Type 'svnlook help ' for help on a specific subcommand.Type 'svnlook --version' to see the program version and FS modules.…Most of svnlook's subcommands can operate on either a revision or a transaction tree,printing information about the tree itself, or how it differs from the previous revision of therepository. You use the --revision (-r) and --transaction (-t) options to specifywhich revision or transaction, respectively, to examine. In the absence of both the --revision (-r) and --transaction (-t) options, svnlook will examine the youngest(or HEAD) revision in the repository. So the following two commands do exactly the samething when 19 is the youngest revision in the repository located at /var/svn/repos:$ svnlook info /var/svn/repos$ svnlook info /var/svn/repos -r 19132

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!