demodating com - Cvs and updating to head

by  |  05-Apr-2015 23:35

(Keep in mind that a single revision of a file can be marked by many different tag names.

cvs and updating to head-8

The tagging method I am going to perform will tag all files in the repository according the revision numbers of each file checked out in my sandbox. T File1T File2T File3T File4T File5.c cvs tag: Tagging documents T documents/Test cvs tag: Tagging new_stuff T new_stuff/T new_stuff/T new_stuff/cvs tag: Tagging new_stuff2% cvs status -v cvs status: Examining .

=================================================================== File: File1Status: Up-to-date Working revision: 1.4 Wed Jun 2 2004 Repository revision: 1.4 c:/var/lib/cvsrepos/Project X/File1.java,v Expansion option: kv Commit Identifier: dd040bdf3160000 Sticky Tag: (none) Sticky Date: (none) Sticky Options: (none) Merge From: (none) Existing Tags: Prod1 (revision: 1.4) release-1 (revision: 1.2) start (revision: 1.1.1.1) INITIAL (branch: 1.1.1) =================================================================== File: File2Status: Up-to-date Working revision: 1.3 Wed Jun 2 2004 Repository revision: 1.3 c:/var/lib/cvsrepos/Project X/File2.java,v Expansion option: kv Commit Identifier: d6040be0ec10000 Sticky Tag: (none) Sticky Date: (none) Sticky Options: (none) Merge From: (none) Existing Tags: Prod1 (revision: 1.3) release-1 (revision: 1.2) start (revision: 1.1.1.1) INITIAL (branch: 1.1.1) =================================================================== File: File3Status: Up-to-date Working revision: 1.2 Mon Mar 15 2004 Repository revision: 1.2 c:/var/lib/cvsrepos/Project X/File3.java,v Expansion option: kv Commit Identifier: 112040562b5d0000 Sticky Tag: (none) Sticky Date: (none) Sticky Options: (none) Merge From: (none) Existing Tags: Prod1 (revision: 1.2) release-1 (revision: 1.2) start (revision: 1.1.1.1) INITIAL (branch: 1.1.1) =================================================================== File: File4Status: Up-to-date Working revision: 1.3 Wed Jun 2 2004 Repository revision: 1.3 c:/var/lib/cvsrepos/Project X/File4.pl,v Expansion option: kv Commit Identifier: d7840be13d20000 Sticky Tag: (none) Sticky Date: (none) Sticky Options: (none) Merge From: (none) Existing Tags: Prod1 (revision: 1.3) =================================================================== File: File5.c Status: Up-to-date Working revision: 1.1 Wed Jun 2 2004 Repository revision: 1.1 c:/var/lib/cvsrepos/Project X/File5.c,v Expansion option: kv Commit Identifier: d7840be13d20000 Sticky Tag: (none) Sticky Date: (none) Sticky Options: (none) Merge From: (none) Existing Tags: Prod1 (revision: 1.1) cvs status: Examining documents =================================================================== File: Test Status: Up-to-date Working revision: 1.4 Tue Jun 1 2004 Repository revision: 1.4 c:/var/lib/cvsrepos/Project X/documents/Test Document.doc, Expansion option: b Commit Identifier: 92840bd02c10000 Sticky Tag: (none) Sticky Date: (none) Sticky Options: -kb Merge From: (none) Existing Tags: Prod1 (revision: 1.4) cvs status: Examining new_stuff =================================================================== File: Status: Up-to-date Working revision: 1.1 Tue Jun 1 2004 Repository revision: 1.1 c:/var/lib/cvsrepos/Project X/new_stuff/a.txt,v Expansion option: kv Commit Identifier: de840bcf5890000 Sticky Tag: (none) Sticky Date: (none) Sticky Options: (none) Merge From: (none) Existing Tags: Prod1 (revision: 1.1) =================================================================== File: Status: Up-to-date Working revision: 1.1 Tue Jun 1 2004 Repository revision: 1.1 c:/var/lib/cvsrepos/Project X/new_stuff/b.txt,v Expansion option: kv Commit Identifier: de840bcf5890000 Sticky Tag: (none) Sticky Date: (none) Sticky Options: (none) Merge From: (none) Existing Tags: Prod1 (revision: 1.1) =================================================================== File: Status: Up-to-date Working revision: 1.1 Tue Jun 1 2004 Repository revision: 1.1 c:/var/lib/cvsrepos/Project X/new_stuff/c.txt,v Expansion option: kv Commit Identifier: de840bcf5890000 Sticky Tag: (none) Sticky Date: (none) Sticky Options: (none) Merge From: (none) Existing Tags: Prod1 (revision: 1.1) cvs status: Examining new_stuff2 tag.

Think about this as "Saving" a stable copy of our project using the file revision numbers that I have checked out in my sandbox.

Before going into my CVS command summary and examples, I ran across an excellent CVS reference card that documents many of the useful commands and options for users of CVS.

The reference card was written by Laurent Grégoire # mkdir /var/lib/cvsroot # chgrp cvsdev /var/lib/cvsroot # chmod g+srwx /var/lib/cvsroot # cvs -d /var/lib/cvsroot init # chown -R cvs /var/lib/cvsroot # ls -l /var/lib total 2 drwxrwsr-x 3 cvs cvsdev 512 Jan 23 cvsroot # ls -la /var/lib/cvsroot total 6 drwxrwsr-x 3 root cvsdev 512 Jan 23 . drwxrwsr-x 3 cvs cvsdev 1024 Jan 23 CVSROOT% cd new_stuff % touch % touch % touch % cvs add *cvs add: scheduling file `a.txt' for addition cvs add: scheduling file `b.txt' for addition cvs add: scheduling file `c.txt' for addition cvs add: use 'cvs commit' to add these files permanently % cvs commit -m "Added new files" cvs commit: Examining .

Community Discussion