The Tycho Version Control provides a simple interface for files that have already been placed under RCS and SCCS. If the file is not under version control, then the user will be prompted whether the current file should be placed under RCS or SCCS.
The Edit class provides the following features:
Checkout
-
Under RCS and SCCS, only one file can be checked out by a user.
Under SCCS, the status of checkin and checkout is determined by
the invocation of sccs info. Under RCS, the status is
determined by the read/write permission of the file. When the
file is checked out, the user will automatically gain write
permission of the file. When the file is checked out, the user
will only have read permission of the file.
Checkin
-
When a file is checked in, the version control will prompt for
description associated with the version. The file will be checked
in, the description and the version will be added to the history,
and the user will only have read permission of the latest version.
Under SCCS, the user should include the following tags in the
comment: %tag%
, where tag
could be either W
(file name),
G
(version number and date), or Q
(year).
Unedit
- For a file that is currently checked out, discard
any changes that have been made and revert to the version most
recently checked in.
View History
- This will open up all of the history associated
with the file, and provide hyperlinks (underlined text) to the
older versions. When the hyperlinks are accessed by double click,
the Tycho Version Control will retrieve the specified version,
store it in a temporary file, then display that temporary file
in an appropriate editor.
Diff Checked Files
- The user can check the different
versions to compare using this command. A diff editor will pop up and
color the differences between the files, while leaving the common
text in default color. When View History is first invoked, by
default, the two most current files will be checked.
Undo Last Checkin
- When this is invoked,
the most recent check-in
will be undo. In another word, the user will check out the most
recent file, and delete the log from history so that he/she can
continue editing. Beware that the combination of Diff Checked
Files
followed by an Undo
implies erasing the most
recent version.