rcs_sample_session
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rcs_sample_session [2025/03/05 03:54] – zilog | rcs_sample_session [2025/03/05 15:47] (current) – minor re-wording zilog | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== An Annotated RCS Practice Session | + | ==== Annotated RCS Practice Session ==== |
<code diff> | <code diff> | ||
Line 13: | Line 13: | ||
## Create a test file: | ## Create a test file: | ||
## RCS supports a handful of keyword tags which can be included in source | ## RCS supports a handful of keyword tags which can be included in source | ||
- | ## files likes so: " | + | ## files like so: " |
## acts upon the file. | ## acts upon the file. | ||
- | |||
## | ## | ||
## fubar test file with ' | ## fubar test file with ' | ||
# | # | ||
$ printf ' | $ printf ' | ||
+ | |||
## Initial file check-in: | ## Initial file check-in: | ||
Line 39: | Line 39: | ||
done | done | ||
- | ## The current state of our working directory. | + | ## The current state of our working directory. |
- | ## under ../RCS/ which are used to track changes: | + | ## file under ../RCS/ which are used to track the changes: |
# | # | ||
$ ls -FR | $ ls -FR | ||
Line 52: | Line 52: | ||
$ ls -l fubar | $ ls -l fubar | ||
-r--r--r-- | -r--r--r-- | ||
+ | |||
## Checking out RCS-managed files for editing: | ## Checking out RCS-managed files for editing: | ||
Line 84: | Line 85: | ||
>> . | >> . | ||
done | done | ||
+ | |||
## Verifying RCS keyword Tag expansion: | ## Verifying RCS keyword Tag expansion: | ||
## It's a small file so we'll use cat(1) to show current content of fubar. | ## It's a small file so we'll use cat(1) to show current content of fubar. | ||
- | ## the expansion of the " | + | ## the expansion of the " |
## NetBSD project as can be seen at the top of various /etc/* config files: | ## NetBSD project as can be seen at the top of various /etc/* config files: | ||
# | # | ||
Line 160: | Line 162: | ||
2a3 | 2a3 | ||
> This is fubar line two. | > This is fubar line two. | ||
+ | |||
## Similarly, if we do another check out, make some edits and run the | ## Similarly, if we do another check out, make some edits and run the | ||
Line 210: | Line 213: | ||
-r--r--r-- | -r--r--r-- | ||
- | ## Instead | + | ## Just for fun, instead |
- | ## current state of our RCS keyword tag " | + | ## to display the current state of our RCS keyword tag " |
# | # | ||
$ ident fubar | $ ident fubar | ||
Line 226: | Line 229: | ||
done | done | ||
- | ## Re-running ident(1) shows our read-only copy matches the latest | + | ## Re-running ident(1) shows our read-only copy now matches the latest |
- | ## revision, now r1.1: | + | ## checked |
# | # | ||
$ ident fubar | $ ident fubar | ||
Line 236: | Line 239: | ||
## Checking the logs: | ## Checking the logs: | ||
## The rlog(1) command can show us the change comments for any checked in | ## The rlog(1) command can show us the change comments for any checked in | ||
- | ## revision. | + | ## revision |
# | # | ||
$ rlog fubar | $ rlog fubar | ||
Line 255: | Line 258: | ||
Initial revision | Initial revision | ||
============================================================================= | ============================================================================= | ||
+ | |||
## Checking lock states with rlog(1): | ## Checking lock states with rlog(1): |
rcs_sample_session.1741146857.txt.gz · Last modified: 2025/03/05 03:54 by zilog