home *** CD-ROM | disk | FTP | other *** search
- #############################################################################
- File: RCSControl
- Author: Jesper Skov
- Email: jskov@iesd.auc.dk
- Short: Easy RCS control from FrexxEd
- Version: 1.3
- Date: 26.02.95
- Local settings:
- Global settings:
- Keysequence: 'C-x C-q' and 'C-x C-Q'
- Type: function
- Prereq: WriteProtect.FPL
- Copyright: © 1994-1995, Jesper Skov
- Use/distribute according to the terms of GNU GPL.
- (See the file 'COPYING.GNU' for more info!)
- #############################################################################
-
- FUNCTION
- This RCS control interface will give you a very easy way of bumping and
- describing your code/text revisions.
- The backbone of this control is the possibility of write protecting a
- buffer, which (by ways of incredible luck :) is provided by
- FrexxEd. With this write protection (wp) it is _very_ simple for
- you to see if you have "control" over a given buffer - you will not be
- able to change the buffer if not. Now you may wonder what wp has to do with
- revision control... Um, very good question actually. I guess the answer is
- >nothing< :) Oh well, maybe a little; on UN*X machines (multi user
- environment) where (many) different people may work with the same files, it
- is often desirable to lock out other users while a file is changed. To
- control this "who's-changing-what-and-when" problem some smart guys invented
- 'revision control systems', which also keep track of changes and history.
- Now, such a system has been ported to the Amiga and why not use what is at
- hand? I know that there exist "history control systems" and RC systems
- written for the Amiga, but I just happen to know this system from school:
- GNU RCS. The Amiga port is done by Heinz Wrobel and is called `HWGRCS'.
- You can find the archive on AmiNet (and Fish, I guess) where it is called
- `HWGRCSp?f.lha'. The '?' indicates the latest patch level number (I use
- level 10). You will have to put the RCS files in a directory accessible
- with the assign "bin:" (e.g. copy them to C: and assign bin: to C:).
-
- Wow, lotsa text about nothing... Still with me? OK, operation:
- First time invoked on a (non-wp) file: You will be asked if the file should
- be put under RCS control.
- -- NO : buffer will be writeprotected.
- -- YES: You will be asked if an RCS directory should be created if not
- already there (this will keep your directory tiddier :)
- Then you will be told (or reminded, whatever) that the first
- comment entry is used for file description.
- 2nd+ time invoked (non-wp):
- A comment buffer will be opened where you may enter revision specific
- information. Only when you press C-c C-c will the revision update take
- effect, in which case the file is locked (checked in) and the buffer is
- write protected (the comment buffer disappears). You may explicit cancel
- the locking by pressing C-g, which will kill the comment buffer.
- If invoked on a write protected buffer, the buffer is made changeable
- (de-wp'ed =) and if the file is under RCS control it will be unlocked,
- checked out (see TO DO).
-
- You can also use the sequence C-x C-Q which will do a normal check in,
- followed immediately by a check out. Use this to bump the revision when
- you want to continue editing.
-
- If you want to use this system you should also have a good long look at
- the RCS documentation (and perhaps one at my code so you know what's
- going on :)
-
- Invoke the function RCSMakeHistory to extract a file's history. The output
- is by default redirected to filename.history.
-
-
- TO DO
- I have a fab idea for Amiga revision bumping combined with building a
- usable history file... Wait'n'C!
-
- HISTORY (REV)
- 26.02.95 (3) Check in speed up (see bugs).
- Code cleaned up.
- 05.02.95 (2) Problems with FrexxEd's writeprotection fixed.
- 26.10.94 (1) Added the RCSMakeHistory function.
- 25.10.94 (0) Initial revision.
-
- BUGS
- When you bump a file (C-x C-Q) FrexxEd will complaint (when you try to save
- it again) that the file has been changed on disk. This is because check in
- is now done without re-loading the file (speed-up). You'll have to do a
- "manual override" for now... I'll have a chat with Daniel about a proper
- solution =)
-
- Other bug reports to my EMail address, thanks.
-
- SEE ALSO
- RCS documentation (not included)
- Michael Crichton's "Congo" (ISBN:0-14-00-5863-X)
-