14.6. Examining the Repository: svnlooksvnlook is a command-line utility for examining different aspects of a Subversion repository. It does not make any changes to the repository. svnlook is typically used by the repository hooks, but a repository administrator might find it useful for diagnostic purposes. Since svnlook works via direct repository access (and thus can only be used on the machine that holds the repository), it refers to the repository with a path, not a URL. If no revision or transaction is specified, svnlook defaults to the youngest (most recent) revision of the repository. 14.6.1. svnlook OptionsOptions in svnlook are global, just as in svn and svnadmin; however, most options apply to only one subcommand because the functionality of svnlook is (intentionally) limited in scope.
14.6.2. svnlook Subcommands
svnlook author repos_path Print the author of a revision or transaction in the repository. Options
svnlook cat repos_path path_in_repos Print the contents of a file. Options
svnlook changed repos_path Print the paths that were changed in a particular revision or transaction, as well as an svn update-style status letter in the first column: A for added, D for deleted, and U for updated (modified). Options
ExampleShow a list of all the changed files in revision 39 of a test repository: $ svnlook changed -r 39 /usr/local/svn/repos A trunk/vendors/deli/ A trunk/vendors/deli/chips.txt A trunk/vendors/deli/sandwich.txt A trunk/vendors/deli/pickle.txt
svnlook date repos_path Print the datestamp of a revision or transaction in a repository. Options
svnlook diff repos_path Print GNU-style differences of changed files and properties in a repository. If a file has a nontextual svn:mime-type property, the differences are explicitly not shown. Options
svnlook dirs-changed repos_path Print the directories that were themselves changed (property edits) or whose file children were changed. Options
svnlook help svnlook -h svnlook -? Provide a quick usage summary. With subcommand, provide information about the given subcommand. Alternate names: ?, h
svnlook history repos_path [path_in_repos] Print information about the history of a path in the repository (or the root directory if no path is supplied). Options
ExampleThis shows the history output for the path /tags/1.0, as of revision 20 in our sample repository. $ svnlook history -r 20 /usr/local/svn/repos /tags/1.0 \ > --show-ids REVISION PATH <ID> -------- --------- 19 /tags/1.0 <1.2.12> 17 /branches/1.0-rc2 <1.1.10> 16 /branches/1.0-rc2 <1.1.x> 14 /trunk <1.0.q> ...
svnlook info repos_path Print the author, datestamp, log message size, and log message. Options
svnlook log repos_path Print the log message. Options
svnlook propget repos_path propname path_in_repos List the value of a property on a path in the repository. Alternate names: pg, pget Options
ExampleShow the value of the seasonings property on the file /trunk/sandwich in the HEAD revision: $ svnlook pg /usr/local/svn/repos seasonings /trunk/sandwich mustard
svnlook proplist repos_path path_in_repos List the properties of a path in the repository. With --verbose, show the property values too. Alternate names: pl, plist Options
ExamplesShow the names of properties set on the file /trunk/README in the HEAD revision: $ svnlook proplist /usr/local/svn/repos /trunk/README original-author svn:mime-type This is the same command as in the previous example, but this time it shows the property values as well: $ svnlook proplist --verbose /usr/local/svn/repos \ > /trunk/README original-author : fitz svn:mime-type : text/plain
svnlook tree repos_path[path_in_repos] Print the tree, starting at path_in_repos (if supplied; at the root of the tree otherwise), optionally showing node revision IDs. Options
ExampleThis shows the tree output (with node IDs) for revision 40 in our sample repository: $ svnlook tree -r 40 /usr/local/svn/repos --show-ids / <0.0.2j> trunk/ <p.0.2j> vendors/ <q.0.2j> deli/ <1g.0.2j> egg.txt <1i.e.2j> soda.txt <1k.0.2j> sandwich.txt <1j.0.2j>
svnlook uuid repos_path Print the UUID for the repository. The UUID is the repository's Universal Unique IDentifier. The Subversion client uses this identifier to differentiate between one repository and another.
svnlook youngest repos_path Print the youngest revision number of a repository. |