Introduction to ClearCase II v 1.2 Vít Hrachový Prague, 26 September 2007.

Slides:



Advertisements
Similar presentations
Copyright, 2006 Dipl. Inform. Uwe Satthoff 1. Basic concepts for usage 2. Basic concepts for administration 3. Setup of example environment
Advertisements

Software Configuration Management Donna Albino LIS489, December 3, 2014.
Chapter One The Essence of UNIX.
CS 501 : An Introduction to SCM & GForge An Introduction to SCM & GForge Lin Guo
Low level CASE: Source Code Management. Source Code Management  Also known as Configuration Management  Source Code Managers are tools that: –Archive.
Microsoft Visual Source Safe 6.01 Microsoft Visual Source Safe (MVSS) Presented By: Rachel Espinoza.
MCTS Guide to Microsoft Windows Server 2008 Network Infrastructure Configuration Chapter 8 Introduction to Printers in a Windows Server 2008 Network.
Source Code Management Or Configuration Management: How I learned to Stop Worrying and Hate My Co-workers Less.
Installing Tomcat on Windows  You may find the Tomcat install shield has some problems recognizing JSDK 1.4 beta installations.  You.
SubVersioN – the new Central Service at DESY by Marian Gawron.
Using Macs and Unix Nancy Griffeth January 6, 2014 Funding for this workshop was provided by the program “Computational Modeling and Analysis of Complex.
Business Optix Library Service – Workflow
Unix Command Project Justin Rogers for LS 560 Spring 2015.
1 Topics for this Lecture Software maintenance in general Source control systems (intro to svn)
Subversion. What is Subversion? A Version Control System A successor to CVS and SourceSafe Essentially gives you a tracked, shared file system.
1 Lecture 19 Configuration Management Software Engineering.
Git A distributed version control system Powerpoint credited to University of PA And modified by Pepper 8-Oct-15.
Overview Introduction to Managing User Environments Introduction to Administrative Templates Using Administrative Templates in Group Policy Assigning Scripts.
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.
ClearCase Basics XML presentation.
Subversion (SVN) A Revision Control System Successor to CVS Carlos Armas Hervey Allen.
Progress with migration to SVN Part3: How to work with g4svn and geant4tags tools. Geant4.
CVS – concurrent versions system Network Management Workshop intERlab at AIT Thailand March 11-15, 2008.
CSE 219 Computer Science III CVS
Publishing Your Web Pages Ann Emmanuel SIUE Web Administrator
ClearCase Concepts and Terminology
REMOTE LOGIN. TEAM MEMBERS AMULYA GURURAJ 1MS07IS006 AMULYA GURURAJ 1MS07IS006 BHARGAVI C.S 1MS07IS013 BHARGAVI C.S 1MS07IS013 MEGHANA N. 1MS07IS050 MEGHANA.
CVS – concurrent versions system AROC Guatemala July 19-23, 2010 Guatemala City, Guatemala.
1 CSE306 Operating Systems Projects CVS/SSH tutorial.
1 Day 18 Bash and the.files. 2 The.files ls shows you the files in your directory –Or at least most of them. –Some files are hidden. Try: ls –a –This.
1 MSTE Visual SourceSafe For more information, see:
L.T.E :: Learning Through Experimenting Using google-svn for MtM Docs Development Denis Thibault Version 3.2 Mar 12 th, 2009.
Differences Training BAAN IVc-BaanERP 5.0c: Application Administration, Customization and Exchange BaanERP 5.0c Tools / Exchange.
2136 Gallows Road, Suite F, Dunn Loring, VA Phone: Fax: Business Analyst Training 1 Module 5.2 Rational ClearCase.
Part 4: FCM and the UM University of Reading, December 2015.
FTP COMMANDS OBJECTIVES. General overview. Introduction to FTP server. Types of FTP users. FTP commands examples. FTP commands in action (example of use).
Linux A practical introduction. 1)Background and Getting Started Linux is an operating system with multiple providers Red Hat/CentOS (our version) Ubuntu.
Excercises: CM with ClearCase Sirkka-Liisa Juoperi Exercises: Configuration Management with ClearCase.
Hands-On Microsoft Windows Server 2008 Chapter 5 Configuring Windows Server 2008 Printing.
Git A distributed version control system Powerpoint credited to University of PA And modified by Pepper 28-Jun-16.
Subversion (svn) Basics Department of Computer Science Kent State University Prof. Jonathan I. Maletic.
Version Control Systems
4.01 How Web Pages Work.
Introduction to ClearCase
Architecture Review 10/11/2004
4.01 How Web Pages Work.
SUSE Linux Enterprise Desktop Administration
Operating System Concepts
CVS – concurrent versions system
CVS – concurrent versions system
Andy Wang Object Oriented Programming in C++ COP 3330
Web Info for Project Presentations
An Intro to Concurrent Versions System (CVS)
Git branches and remotes
Version Control Systems
Lab 1 introduction, debrief
Bomgar Remote support software
Microsoft FrontPage 2003 Illustrated Complete
Exploring the Internet Welcome to Cyberspace:
Distributed Version Control with git
Printer Admin Print Job Manager
Intro to UNIX System and Homework 1
Introduction to Linux Week 0 - Thursday.
CVS Concurrent Versioning System
Andy Wang Object Oriented Programming in C++ COP 3330
Microsoft PowerPoint 2007 – Unit 2
Concurrent Versions System
4.01 How Web Pages Work.
Introduction to The Git Version Control System
Presentation transcript:

Introduction to ClearCase II v 1.2 Vít Hrachový Prague, 26 September 2007

Running X Applications Running Remote Applications X server (your PC) - start X (Xfre86e, Reflection) - get IP (/sbin/ifconfig, ipconfig) X client set display to your IP, e.g. - export DISPLAY= :0 1) Start X server (if needed) 2) get your local IP address 3) log in to the remote machine - via: telnet, ssh, rsh... 4) set the DISPLAY variable 5) run your favourite GUI application :-)

X settings X Server settings edit ~/.Xdefaults to suit your needs (colors, fonts) create script to automatically update ~/.display when you boot/login to your PC Reflection set it to run /usr/local/bin/xterm and on UNIX: export COLORTERM=yes set keys: BackSpace to generate ^H Deleteto generate ^[[3~ (or ^?)

Working with ClearCase CLI 1.Log in to the ClearCase host 2.(if not automated by your rc scripts) Set your DISPLAY, add PATH /usr/atria/bin, create the 'ct' shortcut, e.g.: ➢ bash ➢ export DISPLAY= :0 ➢ export PATH=$HOME/bin:/usr/atria/bin:$PATH ➢ mkdir -p ~/bin ➢ ln -s /usr/atria/bin/cleartool ~/bin/ct 3.(if not automated by your rc scripts) Set your view ➢ ct setview VIEW_NAME # the same as our login name

ClearCase - Getting Help 1.GUI Help ➢ xclearcase/ClearCase Explorer/ClearCase Home ➢ menu Help (requires web browser, same source as 3.) 2.CLI Help ➢ ct -h # short online help ➢ ct man ➢ (e.g.: cleartool ci config_spec findmerge mkbrtype) 3.WWW ➢ Documentation is available in form of web pages

directory element versions file element versions view- private files checked- out version View/VOB concept View VOB Config spec / MVFS

Creating new Element 1.Ensure, that your config-spec is correct ➢ ct setcs -default# set the default - only for Training purposes ➢ ct catcs# print current CS 2.Check out the directory ➢ cd /data/ccase/training/`whoami`/ ➢ ct co -c 'adding new index.html'. 3.Make an element, edit it ➢ ct mkelem -nc index.html ➢ vi index.html 4.Check in the directory and the element ➢ ct lsco # list the checked-out files/directories ) ➢ ct ci. index.html

Removing Element ct rmname – removes element references from actual directory version –Check out the directory ➢ cd /vobs/training/`whoami`/ ➢ ct co -c 'CR12345 – remove obsolete files'. –Remove the files, links, directories ➢ ct rmname -nc obsolete-file obsolete_link obsoleteDir –Check in the directory ➢ ct ci -nc. ct rmelem – destroys complete element with all its history –DON'T use rmelem at all, unless you really know what you're doing!!!

Information about Elements 1.Information about the current version of a file ➢ ct describe index.html ➢ ct describe -g index.html # GUI version - most commands accept -g 2.History of an element ➢ ct lshist index.html 3.Version tree ➢ ct lsvtree [ -g ] index.html 4.What is the current version? ➢ ct ls ➢ ct ls -d /data/ccase/training # -d = directory itself, not contents

Test 1 1.Change the index.html file. Add your name to it. ➢ Tip: ➢ checkout the file ➢ edit it ➢ check it in ct co -nc index.html vi index.html ct ci -c 'name added' index.html ( ct describe index.html ) ct co -nc index.html vi index.html ct ci -c 'name added' index.html ( ct describe index.html )

Branches Branches are used for: 1.The default stream for a product / component (e.g. “HAB_0.1”); - stable branch 2.Customer specific files, different languages, etc. (e.g. “HAB_0.1_German”) 3.Task branches - to be merged to the default stream as soon as they are stable. (e.g. “XSLT_fix_HABD ” or “Lizard_HABD ”) - Remedy ticket no. 4.Bug fixes of an old version (e.g. “Rel_1.0_Fixes”, with Lizard_HABD sub-branches)

Creating Branches 1.Create a branch type ➢ ct mkbrtype BRANCH_NAME 1.Set your CS, so you can see the branch (latest version on it) 2.and if wanted - set your CS, so the branch is automatically created during a check-out ➢ ct edcs # edit config spec 3.The branch on a specific file will be created when you ➢ ct mkbranch -nc BRANCH_NAME index.html # or ➢ ct co index.html # or ➢ ct mkelem new_file element * CHECKEDOUT element *.../BRANCH_NAME/LATEST element * /main/LATEST -mkbranch BRANCH_NAME element * CHECKEDOUT element *.../BRANCH_NAME/LATEST element * /main/LATEST -mkbranch BRANCH_NAME

Test 2 1.Create a German version of index.html on a branch “HAB_0.1_German” and 2.Create a new file “default.css” (on the same branch) ➢ Tip: ➢ don't forget to checkout the dir ct mkbrtype HAB_0.1_German ct edcs # see below ct co -nc index.html vi index.html ct ci -nc index.html ct co. ct mkelem default.css vi default.css ct ci -nc. default.css ct mkbrtype HAB_0.1_German ct edcs # see below ct co -nc index.html vi index.html ct ci -nc index.html ct co. ct mkelem default.css vi default.css ct ci -nc. default.css element * CHECKEDOUT element *.../HAB_0.1_German/LATEST element * /main/LATEST -mkbranch HAB_0.1_German element * CHECKEDOUT element *.../HAB_0.1_German/LATEST element * /main/LATEST -mkbranch HAB_0.1_German

Test 3 1.Set config. spec to show the latest version of the main branch. 2.List the directory contents 3.Where did the 'default.css' file go ? ➢ Tip: ➢ save your current config spec to a file: ct catcs > ~/branch_config_spec.cs (you can reuse it later by: ct setcs FILE) ct edcs # edit CS ls #or: ct setcs -default #the file is in a different version of the current directory ct edcs # edit CS ls #or: ct setcs -default #the file is in a different version of the current directory element * CHECKEDOUT element * /main/LATEST element * CHECKEDOUT element * /main/LATEST

Merge Merging changes –set config spec to the target version ct edcs –create a batch file ct findmerge. -fver.../Lizard_PSADjirkat/LATEST -print –or run graphical merge ct findmerge. -fver.../Lizard_PSADjirkat/LATEST -gmerge –or run merge manually ct co best.c ct merge -g -to index.html \ element * CHECKEDOUT element * /main/LATEST element * CHECKEDOUT element * /main/LATEST

Merge Merge result –check in ct ci index.html

Labels Label is a symbolic name of a certain version of an element –There must be a label type defined, before the label can be used. # make a label type ct mklbtype Stable_1 # place it on the current versions of the elements ct mklabel Stable_1 default.css index.html. # look at the version tree ct lsvtree -g index.html

Labels In config. spec, you can refer to a version using a label element * CHECKEDOUT # for all elements under /vobs/cm/training # show the version labeled “Stable_1” element /vobs/cm/training/... Stable_1 element * /main/LATEST -mkbranch BRANCH_NAME element * CHECKEDOUT # for all elements under /vobs/cm/training # show the version labeled “Stable_1” element /vobs/cm/training/... Stable_1 element * /main/LATEST -mkbranch BRANCH_NAME

Miscellany –Both branch type objects and label type objects can be locked to prevent unwanted reusal. –'cleartool find' is a powerful tool –AdminVob – concept of centralized label and branch type administration –MultiSite – concept of VOBs synchronized across the globe branch masterships deltas / packet synchronization ct lock lbtype:Stable_0.8

ClearCase Questions, comments?