Pauli's software ->Vedit resources -> RCS Support 20. 10. 2003  

RCS Support for Vedit

RCS is a freeware revision control utility. It allows you to manage software projects where several programmers are using the same files. Or you can use it just for unlimited backups. To get RCS, see the links at end of this page.

I have developed some RCS support macros for Vedit text editor. The package contains the following files:

Event macros

RCS_111.vtm - file close event macro
RCS_112.vtm - file pre-open event macro
RCS_113.vtm - file post-close event macro

These macros perform automatic check-in and check-out functions. Just create a sub-directory called RCS in your working directory, rest is done automatically. When you open a file which has been checked in, it will be automatically checked out, and when you close the file, it will be checked in. You can configure whether the checked in file will be read-only or if it is left editable.

Command macros

RCS_cmd.vdm dialog box RCS_cmd.vdm displays a dialog box that allows you to perform some basic operations on your RCS files.


RCSdiff dialog box RLOG and RCSDIFF refer to the file that is open in the current buffer when you call the macro. If no files are open, file open dialog box opens for selecting the file. The macros display the result in a window. From RCSdiff, you can go to the corresponding line in the actual file by pressing Ctrl-F11 (this calls the macro rdif_gto.vdm).

I recommend that you put this in your User menu so you can easily start RCS from the menu and perform the commands. The C-User.mnu described in the C-programming page already contains the "RCS" option which calls this macro.

RCS_load.vdm just loads the three RCS event macros (see above). This macro is redundant if you have a call to RCS_cmd.vdm in your user menu. However, if you prefer, you can copy the commands from this macro to your Startup.vdm macro so that the RCS support is always enabled. (You can still disable it later using RCS_command.vdm.)

rdif_gto.vdm: Go to line referred in RCSdiff output. This macro is run when you press Ctrl-F11 while in the RCSdiff output window.

Syntax Highlight

RCSdiff.syn - syntax highlight for RCSdiff. Displays different colors for removed lines, added lines and line number references.

RCSdiff2.syn - alternate syntax highlight for RCSdiff. Displays removed lines in one color, while added lines are displayed with C syntax highligt.

Rlog.syn - syntax highlight for Rlog (revision history) output.

In addition, an instruction file RCS.TXT is included. The package is available as English and Finnish language versions.

Download:   RCStoolE.zip, English   -   V2.0   -   Vedit 6.0   -   4.0 k
Download:   RCStoolF.zip, Finnish   -   V2.0   -   Vedit 6.0   -   4.0 k

The above versions require Vedit 6.0 or later. If you are using Vedit 5.*, you should download the old version of the package:
Download:   v50/RCStl10.zip   -   V1.0   -   Vedit 5.20   -   4.0 k

Links

www.cs.purdue.edu - Official RCS Homepage
ftp.cs.purdue.edu - The official repository for RCS releases (ftp)
Harvey Mudd Computer Science - RCS: The Revision Control System
Arnold Robbins - What's GNU: RCS - Revision Control System
WinRCS - Windows front end to GNU RCS - Free for private use. RCS download, too.