lecture 29 week7b GNU

lecture 29 week7b GNU - Unix C + GNU HTML Perl Python COMP...

Info iconThis preview shows pages 1–14. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Unix C + GNU HTML Perl Python COMP 206 - Joseph Vybihal Software Systems 1 GNU Tools Comp-206 : Introduction to Software Systems Week 7 - Extra Joseph Vybihal Computer Science McGill University Unix C + GNU HTML Perl Python COMP 206 - Joseph Vybihal Software Systems 2 Announcements • Only RCS is covered this term. Unix C + GNU HTML Perl Python COMP 206 - Joseph Vybihal Software Systems 3 Part 1 GNU Tools (cont.) Unix C + GNU HTML Perl Python COMP 206 - Joseph Vybihal Software Systems 4 RCS A Revision Control System (a command-line tool) Unix C + GNU HTML Perl Python COMP 206 - Joseph Vybihal Software Systems 5 What is it? • Repository: – A way in which you can keep your source files in a database . – This database records every version of your source file, much like the UNDO command in a text editor – but for an entire source file. – It also helps you merge a source file if two people happen to have edited it at the same time. – Password access to source files Unix C + GNU HTML Perl Python COMP 206 - Joseph Vybihal Software Systems 6 About Code Repositories Shared on-line User 1 User 2 personal Shared on-line User 1 User 2 release CSV CSV CSV CSV Unix C + GNU HTML Perl Python COMP 206 - Joseph Vybihal Software Systems 7 CVS Actions • Creating a repository: cvs init – The cvs command lets you manage your repository in many ways. • Adding to repository: checking in: ci file • Editing from repository: check out: co file • Repository history: rlog file – A revision history is very important when you want to know who did what, when they did it, and why. Unix C + GNU HTML Perl Python COMP 206 - Joseph Vybihal Software Systems 8 Revision Trees Unix C + GNU HTML Perl Python COMP 206 - Joseph Vybihal Software Systems 9 RCS Directories and Files • The RCS subdirectory (sub-folder) – If created by you in your working directory, will be used by RCS to store all the files and databases it creates. • Mkdir rcs or rcs init Filename.v is the database file used by RCS. It keeps the revision history, change log, version numbers, etc, for a file. Unix C + GNU HTML Perl Python COMP 206 - Joseph Vybihal Software Systems 10 jvybihal project virtualOffice rcs / Source files in here RCS files auto kept here. If not present then kept in virtualOffice. (optional) Unix C + GNU HTML Perl Python COMP 206 - Joseph Vybihal Software Systems 11 Basic Operations • Check In (regular) – ci filename Your text.c file is deleted. A test,v db file is added / created. Unix prompt Unix C + GNU HTML Perl Python COMP 206 - Joseph Vybihal Software Systems 12 Basic Operations • Check In (-u) – Don’t delete .c file, convert to read-only .c file • ci –u filename • Check Out – To get most recent version of .v file from db as a read-only .c file • co filename – To get .v as an editable .c file, and locks it so no one else can edit it until you return in to db • co –l filename Unix C + GNU HTML Perl Python COMP 206 - Joseph Vybihal Software Systems 13 The Revision Log Unix...
View Full Document

This document was uploaded on 01/30/2011.

Page1 / 60

lecture 29 week7b GNU - Unix C + GNU HTML Perl Python COMP...

This preview shows document pages 1 - 14. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online