806 Part VI . Programming in Linux [editor
806 Part VI . Programming in Linux [editor session] Checking in main.c; /space/cvs/newhello/main.c,v <-- main.c new revision: 1.2; previous revision: 1.1 done When you check in a modified file, CVS opens an editor session to enable you to enter a log message that describes the changes you made. The editor used is the editor defined in the $EDITOR environment variable or compiled-in default (usually vi text editor) if $EDITOR is undefined. This example did not use the -d option because the $CVSROOT environment variable is set. To check out a specific version, or revision, of a file, use the -r option following the checkout or co command, followed by a revision number. For example, to check out revision 1.1 of the main.c file, use the following command: $ cvs checkout -r 1.1 newhello/main.c U newhello/main.c To see the differences between two revisions, use the diff command, using the -r m.n, where m.n indicates the revision number you want to check. If you specify -r only once, the indicated version will be compared against the working file (using the diff option). If you specify -r twice, the two versions will be compared against each other. The following example compares revision 1.2 of showit.c to the current working revision (the revision currently in the working directory): $ cvs diff -r 1.2 main.c Index: main.c =================================================================== RCS file: /space/cvs/newhello/main.c,v retrieving revision 1.2 retrieving revision 1.3 diff -r1.2 -r1.3 9,10c9,10 < char msg_hi[] = { Hi there, programmer! }; < char msg_bye[] = { Goodbye, programmer! }; --- > char msg_hi[] = { Hi there, programmer!n }; > char msg_bye[] = { Goodbye, programmer!n }; 12c12 < printf( %sn , msg_hi); --- > printf( %s , msg_hi); The diff output is easier to understand than you might expect. Lines that begin with < appear in the first file (revision 1.2 of main.c) but not in the second (revision 1.3 of main.c. Similarly, lines beginning with > appear in the second file, but not in the first. Each section of diff output begins with an alphanumeric sequence such as 9,10c9,10 or 12c12.
We highly recommend you visit web and email hosting services if you need stable and cheap web hosting platform for your web applications.