-V Command-Line Option

The -V option enables you to specify earlier versions of files or projects. For example, you may want to view the exact state of a project or file from last month.

The following table lists ways to use the -V option.

Option Description
-V14 Displays version 14.
-Vd2-29-92 Displays the version dated 2-29-92.
"-VLFinal Beta" Displays the version with the label Final Beta.

The -V option displays all files and projects identified by the version number specified on the command line. You can also specify a version number for one particular item, by following that item with a semicolon and then the version number.

The following table shows how to specify a particular item on the command line.

Option Description
Help.C;14 Displays version 14 of Help.C.
Show.prg;d2-29-92 Displays Show.prg as it appeared on 2-29-92.
"$/CW;L Beta 1" Displays the version of the project $/CW with the label Beta 1.

Occasionally, you will want to reference a time along with the date in a VSS command. To do this, use the -vd switch.

For example, to list the history of the $/Test project from 9 A.M. to 3 P.M. on 3/3/95, issue the command:

ss history $/test -vd3/03/95;3:00p~3/03/95;9:00a

In the preceding command "a" or "p", refers to A.M. or P.M. respectively. The tilde (~) indicates that you want the history between the dates and times specified. Note that the later date and time must be specified first.