Thursday, January 06, 2005

[Tech] CVSnt กับ TortoiseCVS

ตอนนี้กำลังจะเอามาใช้อย่างจริงจัง เพราะต้องการพัฒนาระบบสำรองเวอร์ชันแบบอัตโนมัติมากขึ้น เรายังยึดติดกับ CVS ไม่ใช่ SubVersion ก็เพราะความง่ายของการใช้งาน กับอินเตอร์เฟซในโปรแกรมต่างๆที่ถือว่าล้ำหน้ากว่ามาก

สำหรับ CVS นี่ก็แปลกอยู่อย่างหนึ่งตรงที่ว่า Document มันไม่ได้ลงมาให้ในเครื่อง แต่จะลงลิงค์มาให้แทน งงเหมือนกันว่าต้องการให้อ่านเอกสารที่อัพเดตขนาดนั้นเลยเหรอ
(วันที่ 7 มกราคม) พบแล้ว มันให้มาเป็นไฟล์ chm เลย ดีมากๆ ใช้งานง่ายถึงจะไม่ครอสแพลตฟอร์มก็ตามเหอะ
สำหรับ password จะตั้งเป็น mycvsnt6 นะ เอาไว้ใช้ส่วนตัวเท่านั้นก็เลยเอามาแปะไว้ในนี้เลย

ตอนนี้ยังไม่ได้ลองคอนฟิกดู ถ้าทำได้แล้วจะมาบันทึกใหม่อีกรอบ

(Jan 7, 2005)
1. We can add the repository by:
cvs -d "F:/thai_club_repository" init

2. We can add a user by:
cvs -d "F:/thai_club_repos" passwd -a -r pinyo pinyotae
pinyo is a 'real' user in a system (should be a machine that host repository--not confirmed).
pinyotae is a user for the cvs system.

Note that the directory is specified every time because I have no CVSROOT value.

3. Now, we are ready to add something to the repository (actually, if everything is on local disk and we do not use any remote protocal, we can skip the step 2).
3.1. We can import our on going files into CVSROOT by
3.1.1. Go to the directory of the files.
3.1.2. Issue a command: cvs import -m "import thai club files" thai_club_project pinyotae start.
The above command imports files in your current directory into $CVSROOT/CVSROOT/thai_club_project. 'pinyotae' is a vendor name and start is a release tag.
3.2. The import makes the 'thai_club_project' directory a module we can check out.

4. Ready to check out!
4.1. Remember to check only the module you added. DO NOT check out '.' module; that will retrieve the CVSROOT directory too.
4.2. The directory (and EVERY THING inside it) you use TortoiseCVS to check out will be under CVS control. Thus, do not use TortoiseCVS at root directory of a drive. It makes all content in the drive your CVS local version. Make sure that you check out in a prepared directory.

No comments: