Name

svk cat — Output the contents of the specified files or URLs.

Synopsis

svk cat TARGET[@REV[@]]...

Description

Output the contents of the specified files or URLs. For listing the contents of directories, see svk list.

Alternate Names

None

Changes

Nothing

Accesses Depot

Yes

Accesses Mirrored Repository

No

Switches

--revision (-r) REV[@]

Examples

If you want to view readme.txt in your depot without checking it out:

$ svk cat //test/readme.txt
This is a README file.
You should read this.

Tip

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, svk cat will automatically fetch the HEAD revision when you give it a path:

$ cat foo.c
This file is in my local working copy 
and has changes that I've made.

$ svk cat foo.c
Latest revision fresh from the repository!