本手册是描述 Subversion 1.4 版本的。如果您正在运行更新版本的 Subversion,我们强烈建议您访问 https://svnbook.subversion.org.cn/,并查阅适合您 Subversion 版本的版本。
svn cat — 输出指定文件或 URL 的内容。
--revision (-r) REV --username USER --password PASS --no-auth-cache --non-interactive --config-dir DIR
如果您想查看仓库中的 readme.txt 文件而不签出它
$ svn cat http://svn.red-bean.com/repos/test/readme.txt This is a README file. You should read this.
如果您的工作副本已过期(或您有本地修改),并且您想查看工作副本中文件的 HEAD 修订版,svn cat 会在您提供路径时自动获取 HEAD 修订版
$ cat foo.c This file is in my local working copy and has changes that I've made. $ svn cat foo.c Latest revision fresh from the repository!