BillHung.Net


powered by FreeFind     sms

CVS - Current Version System

August 21, 2006

BillMac:~ billhung$ sudo sh
Password:
sh-2.05b# mkdir /usr/local/cvsrep
sh-2.05b# ls -ld /usr/local/cvsrep/
drwxr-xr-x 2 root wheel 68 Aug 11 23:31 /usr/local/cvsrep/
sh-2.05b# groups billhung
billhung appserveradm appserverusr admin 
BillMac:~ billhung$ groups billhung
billhung wheel appserveradm appserverusr admin
sh-2.05b# chmod g+w /usr/local/cvsrep/
sh-2.05b# exit
exit
BillMac:~ billhung$ export CVSROOT=/usr/local/cvsrep/
BillMac:~ billhung$ export CVSEDITOR=pico
BillMac:~ billhung$ cvs init
BillMac:~ billhung$ cd /Applications/MAMP/htdocs/ 
BillMac:/Applications/MAMP/htdocs billhung$ emacs cvs.html 
BillMac:/Applications/MAMP/htdocs billhung$ 

<HTML> 
CVS TEST 
</HTML> 

BillMac:/Applications/MAMP/htdocs/uploader billhung$ cvs import -m "PHP Uploader" uploader vendor-tag start
N uploader/fileupload.htm
N uploader/uploader.php
cvs import: Importing /usr/local/cvsrep/uploader/uploads 
N uploader/uploads/.DS_Store

No conflicts created by this import

BillMac:/Applications/MAMP/htdocs/uploader billhung$ 

BillMac:~/Sites/php billhung$ cvs checkout uploader 
cvs checkout: Updating uploader 
U uploader/fileupload.htm
U uploader/uploader.php
cvs checkout: Updating uploader/uploads
U uploader/uploads/.DS_Store
BillMac:~/Sites/php billhung$ 

BillMac:~/Sites/php/uploader billhung$ cvs commit -m "added a line CVS TEST" uploader.php 
Checking in uploader.php;
/usr/local/cvsrep/uploader/uploader.php,v <-- uploader.php
new revision: 1.2; previous revision: 1.1
done
BillMac:~/Sites/php/uploader billhung$ 

Add a User to a Group

In order to have CVS to work, I have to add myself to the wheel group, which owns the cvsrep directory. So I go to /Applications/Utilities->Netinfo Manager.

To create a new group under Mac OS X, launch the NetInfo Manager application from /Applications/Utilities, and follow these steps:

Click the lock icon and enter your password in order to make changes.
Click the word "groups" in order to display groups.
You are going to make a duplicate copy of an existing group and re-name it. Start by clicking on "daemon".
Click the "duplicate" icon (the image of two folders).
Click on the name of the newly created duplicate group and change it to "cvs-user".
Change the group id (gid) to some number that hasn't been used yet, like 501.
Highlight the "users" field in the lower pane of the window.
For each user you would like to associate with this group, select "insert value" from the directory menu. Double-click each newly inserted value and change the name to the short name of your desired user.

Removing Sticky Tag

floss$ cvs -q update -A
     U hello.c
     floss$ cvs status hello.c
     ===================================================================

File: hello.c Status: Up-to-date Working revision: 1.5 Sun Apr 25 22:50:27 1999 Repository revision: 1.5 /usr/local/cvs/myproj/hello.c,v Sticky Tag: (none)
Sticky Date: (none) Sticky Options: (none) floss$

Reference

The Tutorial Shown above
http://developer.apple.com/internet/opensource/cvsoverview.html
CVS with Emacs
http://www.gnu.org/software/emacs/manual/html_node/Version-Control.html#Version-Control
Others
http://66.102.7.104/search?q=cache:aciksPERzvYJ:cvsbook.red-bean.com/cvsbook.html+%22cvs+commit:+cannot+commit+with+sticky+date+for+file%22+emacs&hl=en&gl=us&ct=clnk&cd=1