名称

svn cat — 输出特定文件或URL的内容。

概要

svn cat TARGET[@REV]...

描述

输出特定文件或 URL 的内容。列出目录的内容可以使用 svn list

选项

--revision (-r) REV

例子

如果你希望不检出而察看版本库的readme.txt的内容:

$ svn cat http://svn.red-bean.com/repos/test/readme.txt
This is a README file.
You should read this.
$
[提示] 提示

If your working copy is out of date (or you have local modifications) and you want to see the HEAD revision of a file in your working copy, svn cat -r HEAD FILENAME will automatically fetch the HEAD revision of the specified path:

$ cat foo.c
This file is in my local working copy 
and has changes that I've made.
$ svn cat -r HEAD foo.c
Latest revision fresh from the repository!
$