The cat command retrieves the contents of a particular version of a file element from depot storage in the AccuRev repository. Exception: if you omit the -v option, it uses the contents of the file in your workspace tree (on the client machine) rather than going to the repository (on the server machine).cat displays the data — i.e. sends it to the stdout device. You can use ordinary command-shell program techniques to pipe or redirect the data.This command follows element links and symbolic links, displaying the contents of the target element.Display a particular version of the element, instead of the file in your workspace tree. See Using a Specific Version of an Element on page 18 for a description of the forms that <ver-spec> can take.For an element link, this option specifies a version of the link element. The current content of the element targeted by the specified version of the element link is displayed.Specify the depot in which the element resides. The option is required only if the current working directory is not within a workspace for that depot, and you use a stream-number with -v instead of a stream-name. When using this option, you cannot specify the element with a simple filename; use its depot-relative pathname (or its element-ID) instead.Operate on the file element with the specified element-ID. You can use this option instead of specifying the name of an element. If you use this option, -v is ignored.Display the content of the element link mylink as of version 6/2:If version 6/2 of mylink pointed to a file comment.txt that contained //10-Jan-2009 when the link was created, but the latest version now contains //10-Nov-2009, the command returns //10-Nov-2009. Even if mylink has a later version pointing to a different file, the command will return the contents of the latest version of the file pointed to by version 6/2.
AccuRev, Inc. |
Phone: 781-861-8700 |
Fax: 781-861-8704 |
support@accurev.com |