LinuxCommandLibrary

rcsmerge

Merge RCS file revisions

TLDR

Merge revisions into working file

$ rcsmerge -r[1.1] -r[1.2] [file]
copy
Merge specific revision
$ rcsmerge -r[1.3] [file]
copy
Print to stdout
$ rcsmerge -p -r[1.1] -r[1.2] [file]
copy
Quiet mode
$ rcsmerge -q -r[1.1] -r[1.2] [file]
copy

SYNOPSIS

rcsmerge [-p] [-r rev1] [-r rev2] [options] file

DESCRIPTION

rcsmerge performs a three-way merge of RCS file revisions, incorporating changes made between two specified revisions into the current working file. It identifies a common ancestor revision and applies the differences to produce a merged result, similar to how modern version control systems handle branch merging.
By default the merge modifies the working file in place, but the -p flag prints the merged result to stdout instead. When conflicting changes are detected, conflict markers are inserted into the output and must be resolved manually before the file can be checked back in.

PARAMETERS

-r REV

Revision to merge.
-p
Print to stdout.
-q
Quiet operation.
-k SUBST
Keyword substitution.
-V N
RCS version emulation.

CAVEATS

RCS is legacy system. Conflicts need manual fix. Consider Git for new projects.

HISTORY

rcsmerge is part of RCS (Revision Control System), created by Walter Tichy in 1982 at Purdue University.

SEE ALSO

rcs(1), rcsdiff(1), merge(1), ci(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community