RCS Revision Control System

Slides:



Advertisements
Similar presentations
Lab III – Linux at UMBC.
Advertisements

1. What is Subversion? Why do we need CM? Basic concepts Repositories Options Setup Clients Options Setup Operation Troubleshooting Slide 2.
Version Control System (Sub)Version Control (SVN).
Chapter 11: Classes and Objects
Rolando V. RaqueñoWednesday, June 10, 2015 Statistics Function Implementation Traditional Programming Approach.
Source Code Revision Control with Subversion Christophe Dupré May 13, 2005 Update KEJ May 10, 2006 Scientific Computation Research Center Rensselaer Polytechnic.
Concurrent Versioning System Chapter 8 (ALBING’s).
6/27/20151 Doris Lee Concurrent Version System (CVS)
Configuration Management and RCS CPS470 Fall 1999.
Low level CASE: Source Code Management. Source Code Management  Also known as Configuration Management  Source Code Managers are tools that: –Archive.
2000 Copyrights, Danielle S. Lahmani UNIX Tools G , Fall 2000 Danielle S. Lahmani Lecture 9.
Perforce (Version Control Software). Perforce is an enterprise version management system in which users connect to a shared file repository. Perforce.
Subversion. What is Subversion? A Version Control System A successor to CVS and SourceSafe Essentially gives you a tracked, shared file system.
Subversion (SVN) Tutorial for CS421 Dan Fleck Spring 2010.
…using Git/Tortoise Git
Chris Onions Getting started with CVS in ATLAS 11 Getting started with CVS in ATLAS Chris Onions (Tutorial based on that of Raúl Ramos Pollán CERN / IT.
Object-Oriented Analysis & Design Subversion. Contents  Configuration management  The repository  Versioning  Tags  Branches  Subversion 2.
Using Subversion and TortoiseSVN for Windows by Galen Wilkerson Gund Institute for Ecological Economics University of Vermont
CSE 219 Computer Science III CVS
RCS The Revision Control System. To Be Covered… An RCS overview The RCS command set Some useful things Where it can be used Alternatives to RCS.
Microsoft Visual SourceSafe “(VSS) does not eliminate the need for discipline and coordination. It only makes discipline and coordination easier to live.
CIT 470: Advanced Network and System AdministrationSlide #1 CIT 470: Advanced Network and System Administration Change and Configuration Management.
Appendix E: Overview of HTTP ©SoftMoore ConsultingSlide 1.
When collaborating, it is important to manage changes in the models. For example: –To create or edit a submodel E.g. Habitat suitability is replaced with.
CVS: Concurrent Version System Lecturer: Prof. Andrzej (AJ) Bieszczad Phone: “UNIX for Programmers and Users” Third.
12 CVS Mauro Jaskelioff (originally by Gail Hopkins)
1 Winter Quarter 2003Rolando V. Raqueño Basic IDL Commands SIMG 726.
CS 350, slide set 11 M. Overstreet Old Dominion University Spring 2006.
WinCVS Training è Basic Concepts è Download & Setup è Importing a new module into CVS Repository è Getting new module from CVS è Getting Latest version.
1 Winter Quarter 2003Rolando V. Raqueño Shell Programming.
Unified Noah LSM Code Management Using CVS Mukul Tewari 1, Mike Ek 2, Kevin Manning 1, Fei Chen 1 and Ken Mitchell 2 1 NCAR, Boulder, CO 2 NCEP/EMC, Camp.
SVN code server for AliRoot P.Hristov 18/10/2007.
Sequential Processing to Update a File Please use speaker notes for additional information!
Subversion (SVN) Tutorial for CS421 Dan Fleck Spring 2010.
Information Systems and Network Engineering Laboratory I DR. KEN COSH WEEK 1.
Git How to 1. Why Git To resolve problems in lab exams (accidental deletions) Use existing Libraries with ease (Statistics and Computer) Prepare undergraduates.
Warren Jones, Fluke Co., Eugene Kramer, Remedy Co. Introduction to CVS 1999 Revised by David Svoboda 2003 Concurrent Versions System Overview of CVS architecture.
Backing up a machine with git
Revision Control for Sysadmins
RMAN Maintenance.
Subversion Subversion is a brand of version control software that is frequently used to store the code and documentation of a project so as to permit.
Information Systems and Network Engineering Laboratory II
Basic IDL Commands SIMG 726 Winter Quarter 2005 Rolando V. Raqueño.
CVS – concurrent versions system
CVS – concurrent versions system
CVS : Add new file Team -6 October 28, 2004.
Subversion Reasons to use How it works Subversion important commands
Version Control overview
Introduction to Configuration Management With RCS
Subversion.
C-language Lecture By B.S.S.Tejesh, S.Neeraja Asst.Prof.
An introduction to version control systems with Git
Shell Programming Winter Quarter 2005 Rolando V. Raqueño.
An introduction to version control systems with Git
Chapter 14: Exception Handling
An introduction to version control systems with Git
Revision Control Daniel Daugherty
Concurrent Version System (CVS)
Source Code Control Systems
CVS Concurrent Versioning System
Lesson 3: Epic Appointment Scheduling Referrals
EXAMINE THE CHANGES.
Git CS Fall 2018.
Statistics Function Implementation
CVS By: Mark Henkel.
Amandeep Jawa Worker Bee Software
Lesson 3: Epic Appointment Scheduling Referrals
Concurrent Versions System
Footwear Planning and Production Process
Commit The Changes By: Swetha Kendyala
Presentation transcript:

RCS Revision Control System SIMG 726 Winter Quarter 2003 Rolando V. Raqueño

What is RCS? RCS (Revision Control System) Allows you to locally journal and archive code/files under development Protects copies of working code from being destroyed by experimental modifications Assures that only one person is editing each file Facilitates additional documentation associated with different versions of code Winter Quarter 2003 Rolando V. Raqueño

Sample RCS Case We will create a sample case to illustrate the mechanics of using RCS Use the simple sum program case test_sum.pro sum.pro input.dat output.dat Winter Quarter 2003 Rolando V. Raqueño

General Setup and Use of RCS Initial setup Create a directory for the “project” Create the RCS repository directory Create the program and data files Check in the files into RCS After initial setup Check out the files out of RCS Edit the files Check the files back into RCS Repeat as needed Winter Quarter 2003 Rolando V. Raqueño

Create a directory for the project % mkdir test_sum test_sum test_sum.pro sum.pro input.dat Winter Quarter 2003 Rolando V. Raqueño

test_sum.pro pro test_sum data = fltarr(2,3,4) openr,input_file,‘input.dat’,/get_lun openw,output_file,‘output.dat’,/get_lun readf, input_file, data answer = sum( data ) printf, output_file, answer free_lun, input_file, output_file end Winter Quarter 2003 Rolando V. Raqueño

sum.pro function sum, x n = n_elements(x) answer = double(x[0]) for i = 1L, n-1 do begin answer = answer + x[i] end return, answer Winter Quarter 2003 Rolando V. Raqueño

input.dat 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 Winter Quarter 2003 Rolando V. Raqueño

Create an RCS directory repository % mkdir RCS test_sum test_sum.pro sum.pro input.dat RCS Winter Quarter 2003 Rolando V. Raqueño

Check in your files using the ci command % ci test_sum.pro sum.pro input.dat You will be prompted for input describing each of the files. Enter an appropriate description to help you and others document the file Winter Quarter 2003 Rolando V. Raqueño

Description of input.dat RCS/input.dat,v <-- input.dat enter description, terminated with single '.' or end of file: NOTE: This is NOT the log message! >> This is the test input data set for test_sum.pro >> and sum.pro >> . initial revision: 1.1 done Winter Quarter 2003 Rolando V. Raqueño

Description of sum.pro RCS/sum.pro,v <-- sum.pro enter description, terminated with single '.' or end of file: NOTE: This is NOT the log message! >> This function sums an array in IDL >> . initial revision: 1.1 done Winter Quarter 2003 Rolando V. Raqueño

Description of test_sum.pro RCS/test_sum.pro,v <-- test_sum.pro enter description, terminated with single '.' or end of file: NOTE: This is NOT the log message! >> This program is a test program to validate sum.pro >> . initial revision: 1.1 done Winter Quarter 2003 Rolando V. Raqueño

Create an RCS directory repository % ls RCS test_sum RCS test_sum.pro,v sum.pro,v input.dat,v Winter Quarter 2003 Rolando V. Raqueño

Checking the status of a file in the RCS repository % rlog test_sum.pro RCS file: RCS/test_sum.pro,v Working file: test_sum.pro head: 1.1 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: This program is a test program to validate sum.pro ---------------------------- revision 1.1 date: 2003/02/05 13:45:30; author: rvrpci; state: Exp; Initial revision Winter Quarter 2003 Rolando V. Raqueño

Checking out a file for read-only % co sum.pro RCS/sum.pro,v --> sum.pro revision 1.1 done test_sum sum.pro RCS test_sum.pro,v sum.pro,v input.dat,v Winter Quarter 2003 Rolando V. Raqueño

sum.pro ONLY for VIEWING You cannot edit this file because of the protections % ls -l sum.pro -r--r----- … sum.pro Winter Quarter 2003 Rolando V. Raqueño

To Make sum.pro writable % co -l sum.pro RCS/sum.pro,v --> sum.pro revision 1.1 (locked) done % ls -l sum.pro -rw-r----- … sum.pro Winter Quarter 2003 Rolando V. Raqueño

sum.pro ;$Header$ ;$Log$ function sum, x n = n_elements(x) answer = double(x[0]) for i = 1L, n-1 do begin answer = answer + x[i] end return, answer Winter Quarter 2003 Rolando V. Raqueño

Create an RCS directory repository % ls RCS test_sum test_sum.pro sum.pro input.dat RCS test_sum.pro,v sum.pro,v input.dat,v Winter Quarter 2003 Rolando V. Raqueño

Subsequent Check in of sum.pro after edits % ci sum.pro RCS/sum.pro,v <-- sum.pro new revision: 1.2; previous revision: 1.1 enter log message, terminated with single '.' or end of file: >> Added RCS keywords for documentation. >> . done Winter Quarter 2003 Rolando V. Raqueño

Checking out current version of sum.pro % co sum.pro RCS/sum.pro,v --> sum.pro revision 1.2 done Winter Quarter 2003 Rolando V. Raqueño

Current sum.pro % more sum.pro ;$Header: /cis/staff/rvrpci/public_html/teaching/simg726/20022/testing/test_sum/ RCS/sum.pro,v 1.2 2003/02/05 14:11:49 rvrpci Exp $ ;$Log: sum.pro,v $ ;Revision 1.2 2003/02/05 14:11:49 rvrpci ;Added RCS keywords for documentation. ; function sum,x … end Winter Quarter 2003 Rolando V. Raqueño

Checking for differences % rcsdiff -r1.1 sum.pro =========================================================== RCS file: RCS/sum.pro,v retrieving revision 1.1 diff -r1.1 sum.pro 0a1,5 > ;$Header: /cis/staff/rvrpci/public_html/teaching/simg726/20022/testing/test_sum/RCS/sum.pro,v 1.2 2003/02/05 14:11:49 rvrpci Exp $ > ;$Log: sum.pro,v $ > ;Revision 1.2 2003/02/05 14:11:49 rvrpci > ;Added RCS keywords for documentation. > ; Winter Quarter 2003 Rolando V. Raqueño

Checking the log of a file % rlog sum.pro … ---------------------------- revision 1.2 date: 2003/02/05 14:11:49; author: rvrpci; state: Exp; lines: +2 -0 Added RCS keywords for documentation. revision 1.1 date: 2003/02/05 13:45:30; author: rvrpci; state: Exp; Initial revision ====================================================== Winter Quarter 2003 Rolando V. Raqueño

rcsfreeze Allows you to group checked in RCS entries into a logical unit Example % rcsfreeze Ground_Hog_Day % co -rGround_Hog_Day RCS/*,v Winter Quarter 2003 Rolando V. Raqueño