void
main()
{
printf("hello world 1.1\n");
return 0;
}
Check it into an RCS source tree
Release Version
Check out the file
Change void to int
Change hello world 1.1 to hello world
2.1
Check it in. This is now our release version 2.1
Defect Fix
Check out the release version.
Change main() to main(int argc, char
*argv[])
Change hello world 2.1 to hello world
2.1.1.1
Check the file into a new branch 2.1.1; this is
the branch containing defects that are fixed in the
release version.
Development
Check out the release version
Change hello world 2.1 to hello world
2.2
After the printf, append the line
printf("hello again\n");
Check the file in to the main branch. the main
branch is also known as the trunk. The trunk contains
our development and release versions.
Merge Branches
Check out the latest development version
Merge any defect fixes since the last release.
Use the command rcsmerge -r2.1 -r2.1.1.1 f.c
Examine f.c, identify and resolve
conflicts.
Check in the merged file as version 2.3
Draw a graph that depicts the versions of the files you
have just created. Label each node in the graph with the
version number of the file represented by the node.