This text is a work in progress—highly subject to change—and may not accurately describe any released version of the Apache™ Subversion® software. Bookmarking or otherwise referring others to this page is probably not such a smart idea. Please visit http://www.svnbook.com/ for stable versions of this book.
svnlook tree — Print the tree.
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.
This shows the tree output for revision 13 in our sample repository:
$ svnlook tree -r 13 /var/svn/repos / trunk/ button.c Makefile integer.c branches/ bookstore/ button.c Makefile integer.c …
Use the --show-ids
option to include
node revision IDs (unique internal identifiers for
specific nodes in Subversion's versioned filesystem
implementation):
$ svnlook tree -r 13 /var/svn/repos --show-ids / <0.0.r13/811> trunk/ <1.0.r9/551> button.c <2.0.r9/238> Makefile <3.0.r7/41> integer.c <4.0.r6/98> branches/ <5.0.r13/593> bookstore/ <1.1.r13/390> button.c <2.1.r12/85> Makefile <3.0.r7/41> integer.c <4.1.r13/109> …
For output which lends itself more readily to being
parsed by scripts, use the --full-paths
option, which causes svnlook to print
the full repository path of each tree item and to not use
indentation to indicate hierarchy:
$ svnlook tree -r 13 /var/svn/repos --show-ids --full-paths / <0.0.r13/811> trunk/ <1.0.r9/551> trunk/button.c <2.0.r9/238> trunk/Makefile <3.0.r7/41> trunk/integer.c <4.0.r6/98> branches/ <5.0.r13/593> branches/bookstore/ <1.1.r13/390> branches/bookstore/button.c <2.1.r12/85> branches/bookstore/Makefile <3.0.r7/41> branches/bookstore/integer.c <4.1.r13/109> …