rcs.sc
Next: save.sc
Up: SmacLib
Previous: mouse.sc
This file contains interface functions for the GNU Revision
Control System. RCS manages multiple revisions of a file and
automates the storing, retrieval, logging and identification of revisions.
The following functions work on the current file and are reachable by the
Version menu (see §5.33 page . For more information, consult the
RCS manual.
- void rcs_initialize(); creates and initializes a new RCS
file then deposits the 1.1 revision and checks out unlocked (i.e. read
only) this revision. If the current buffer has no name, it prompts in a
dialog box to get a filename. Then a message indicates that the revision
1.1 has been initialized.
- int rcs_check_in(); checks existing, initializing and
locking permissions then prompts for a log message and deposits a
new version (the current buffer is cleared). Return 1 if success else 0.
- void rcs_check_in_and_out_locked(); does the same as
the previous function then checks out locked (i.e. writable) the desired
revision (the current buffer is restored).
- void rcs_check_in_and_out_unlocked(); does the same work as
the function rcs_check_in then checks out unlocked the desired
revision (the current buffer is restored but the file is read-only).
- void rcs_check_out_locked(); verifies locking
permissions and checks out locked the needed revision (default last).
- void rcs_check_out_unlocked(); verifies locking
permissions and checks out unlocked the needed revision (default last).
- void rcs_diff(); displays the differences between the
current revision and another specified revision.
- void rcs_lock_revision(); prompts for a filename and a revision
number then locks it.
- void rcs_unlock_revision(); prompts for a filename and a revision
number then unlocks it.
- void rcs_log(); prints information about revisions of the
current RCS file.
- void rcs_repository(); displays the contents of the
local RCS directory.
Lionel Fournigault
Mon Mar 6 13:33:34 MET 1995