diff --git a/pages/common/ci.md b/pages/common/ci.md new file mode 100644 index 0000000000..87dcf559a2 --- /dev/null +++ b/pages/common/ci.md @@ -0,0 +1,25 @@ +# ci + +> Check in RCS revisions (store file changes in the Revision Control System). +> See also: `co`, `rcs`, `rcsdiff`, `rlog`. +> More information: . + +- Check in a file and keep the working file unlocked: + +`ci -u {{path/to/file}}` + +- Check in a file and keep the working file locked: + +`ci -l {{path/to/file}}` + +- Check in a file with a specific log message: + +`ci -m"{{log_message}}" {{path/to/file}}` + +- Check in a file, unlocking it but leaving the working file read-only: + +`ci {{path/to/file}}` + +- Force check-in even if there are no changes: + +`ci -f -u {{path/to/file}}` diff --git a/pages/common/co.md b/pages/common/co.md new file mode 100644 index 0000000000..cc659b5dba --- /dev/null +++ b/pages/common/co.md @@ -0,0 +1,25 @@ +# co + +> Check out RCS revisions (retrieve working files from the Revision Control System). +> See also: `ci`, `rcs`, `rcsdiff`, `rlog`. +> More information: . + +- Check out the latest revision of a file (retrieves a read-only copy): + +`co {{path/to/file}}` + +- Check out a file with a lock for editing: + +`co -l {{path/to/file}}` + +- Check out a specific revision of a file: + +`co -r{{revision}} {{path/to/file}}` + +- Check out a file and overwrite it if it already exists: + +`co -f -l {{path/to/file}}` + +- Print a specific revision to `stdout` without creating a file: + +`co -p -r{{revision}} {{path/to/file}}` diff --git a/pages/common/ident.md b/pages/common/ident.md new file mode 100644 index 0000000000..1b21a15e16 --- /dev/null +++ b/pages/common/ident.md @@ -0,0 +1,17 @@ +# ident + +> Identify RCS keyword strings in files. +> See also: `ci`, `co`, `rcs`, `rcsdiff`, `rlog`. +> More information: . + +- Display RCS identification strings in a file: + +`ident {{path/to/file}}` + +- Display RCS identification strings, suppressing warnings if no patterns are found: + +`ident -q {{path/to/file1 path/to/file2 ...}}` + +- Display RCS identification strings from `stdin`: + +`cat {{path/to/file}} | ident` diff --git a/pages/common/rcs.md b/pages/common/rcs.md new file mode 100644 index 0000000000..29f7f04a6e --- /dev/null +++ b/pages/common/rcs.md @@ -0,0 +1,25 @@ +# rcs + +> Revision Control System - manage RCS file attributes. +> See also: `ci`, `co`, `rcsdiff`, `rlog`. +> More information: . + +- Unlock a revision locked by another user (requires access): + +`rcs -u {{path/to/file}}` + +- Lock a specific revision of a file: + +`rcs -l{{revision}} {{path/to/file}}` + +- Set the strict locking mode (require lock for check-in): + +`rcs -L {{path/to/file}}` + +- Add or replace a log message for a specific revision: + +`rcs -m{{revision}}:"{{new_message}}" {{path/to/file}}` + +- Delete a specific revision from the RCS file: + +`rcs -o{{revision}} {{path/to/file}}` diff --git a/pages/common/rcsdiff.md b/pages/common/rcsdiff.md new file mode 100644 index 0000000000..baebf56bc3 --- /dev/null +++ b/pages/common/rcsdiff.md @@ -0,0 +1,25 @@ +# rcsdiff + +> Compare RCS revisions (show differences between revisions in RCS files). +> See also: `ci`, `co`, `rcs`, `rlog`. +> More information: . + +- Compare the working file with the latest revision: + +`rcsdiff {{path/to/file}}` + +- Compare the working file with a specific revision: + +`rcsdiff -r{{revision}} {{path/to/file}}` + +- Compare two specific revisions of a file: + +`rcsdiff -r{{revision1}} -r{{revision2}} {{path/to/file}}` + +- Show differences in unified format: + +`rcsdiff -u {{path/to/file}}` + +- Show differences with context lines: + +`rcsdiff -c {{path/to/file}}` diff --git a/pages/common/rcsmerge.md b/pages/common/rcsmerge.md new file mode 100644 index 0000000000..ce0903f68a --- /dev/null +++ b/pages/common/rcsmerge.md @@ -0,0 +1,21 @@ +# rcsmerge + +> Merge RCS revisions into the working file. +> See also: `ci`, `co`, `rcs`, `rcsdiff`, `rlog`. +> More information: . + +- Merge differences between two revisions into the working file: + +`rcsmerge -r{{revision1}} -r{{revision2}} {{path/to/file}}` + +- Merge changes from a branch revision into the working file: + +`rcsmerge -r{{branch_revision}} {{path/to/file}}` + +- Perform a quiet merge (suppress diagnostics): + +`rcsmerge -q -r{{revision1}} -r{{revision2}} {{path/to/file}}` + +- Print the result to `stdout` instead of overwriting the working file: + +`rcsmerge -p -r{{revision1}} -r{{revision2}} {{path/to/file}}` diff --git a/pages/common/rlog.md b/pages/common/rlog.md new file mode 100644 index 0000000000..275ea3fa73 --- /dev/null +++ b/pages/common/rlog.md @@ -0,0 +1,25 @@ +# rlog + +> Print the revision log of RCS files. +> See also: `ci`, `co`, `rcs`, `rcsdiff`. +> More information: . + +- Display the complete revision history of a file: + +`rlog {{path/to/file}}` + +- Display only the header information (no revision details): + +`rlog -h {{path/to/file}}` + +- Display information for a specific revision: + +`rlog -r{{revision}} {{path/to/file}}` + +- Display revisions within a date range: + +`rlog -d"{{start_date}}<{{end_date}}" {{path/to/file}}` + +- Display revisions by a specific author: + +`rlog -w{{author}} {{path/to/file}}`