Some of the MVC commands are also listed in the Editor > Version and Builder > Version menus. To type these commands, see "How to use MVC".
For any of the commands that check in a file, you can enter the -c option to force MVC to ask for comments.
In all of the following commands, version refers to the version number you want the command to manipulate. If no version number is specified, then the current version is assumed. For a check out, the current version is the latest version on the main version sequence. For a check in, the current version is the same but with the minor version number incremented by one.
Some of the commands use a date (-d date) instead of a version number to refer to a given version. The date needs to be in the form:
MMDDYYhhmmss
MM |
month |
DD |
day |
YY |
year |
hh |
hour |
mm |
minutes |
ss |
seconds |
The individual components of the date are separated by non-digit characters (except for white space). For example, you can specify the date as 082597120000 or 08.25.97.12.00.00. Do not put spaces in the date. If any part of the date is omitted, the maximum value for that part is used. For example, 082597 implies 082597235959. Two digit years between 50 and 99 are assumed to describe years from 1950-1999, while years from 00 to 49 are used to refer to years from 2000-2049.
You can use four-digit years by using the -D date option which takes a date in the form:
YYYYMMDDhhmmss
All of the following commands use a filename. Multiple filenames are separated by spaces. You can specify these files using the command-line option -l list_file instead of filename. The list file is a normal text file that starts with the keyword mvc-list, followed by the number of files, then the filenames. Everything in the list file needs to be separated by spaces, tabs, and/or newlines. For example, you have the following list file named fly:
mvc-list 3
art.c
trip.c
hat.c
With the above list file, you can specify a command to work on all three of the listed files, art.c, trip.c, and hat.c. This means the following two commands are identical:
ci art.c trip.c hat.c
ci -l fly
With both of these commands, the three files are checked in. The first line lists them explicitly; in the second line, a list file is specified which contains the three files.
To use directories other than the current one, specify the -L logdir and -S sourcedir options. logdir is the directory that contains the mvc.log directory to use for the log files. sourcedir is the directory containing the source files. For example, if the source files are in /usr/john and the log files are in /usr/george/mvc.log then the command:
ci fly.c bat.c -S /usr/john -L /usr/george
takes the files /usr/john/fly.c and /usr/john/bat.c and checks them into the log files /usr/george/mvc.log/fly.c and /usr/george/mvc.log/bat.c.