SlideShare une entreprise Scribd logo
1  sur  16
Source Code Control System
SCCS
● essential tool for any project with multiple source files or
which has several people working with multiple source
files.
● provides a way to keep track of a source file's
development and to prevent it from being altered by more
than one person at a time.
● first source code revision control system
● dominant version control system until the release of the
Revision Control System.
● generally considered obsolete. However, its file format is
still used internally by a few other revision control
programs, including BitKeeper and TeamWare.
SCCS can be used for...
● Putting files under SCCS control
● Checking out files
● Checking in files
● Getting information about files
● Creating new releases
● Comparing files under SCCS control
Putting files under SCCS control
Files are placed under the control of SCCS by
making an SCCS directory and creating the
SCCS file. You also have the option of placing ID
keywords in each file.
● Making an SCCS directory
● Inserting SCCS ID keywords in a file
● Creating an SCCS file
Making an SCCS directory
● To create the SCCS directory use the
command:
mkdir SCCS
● The directory name must be in upper case.
Inserting SCCS ID keywords in a file
● You can put one or
more ID keywords in
each file. These
keywords are used to
display information
about the file
whenever a read only
version is checked
out.
SCCS ID keywords include:
%G% the date of the delta
%I% sid of the retrieved text
%M% the current module name
%R% the current release number
%W% a shorter form for %Z%%M%<tab>%I%
%Z% string used by the what command
Creating an SCCS file
● To place files under the control of SCCS use the command:
sccs create filename(s)
● For each filename given as an argument sccs create does the following:
● filename is moved to ,filename
● a history file s.filename is created in the SCCS subdirectory
● a "read only" copy of the initial version of the file is made by sccs get
● You can use the ls command to check that the history files have been
created.
ls SCCS
● Now you can remove the ,filename files:
rm ,*
Checking out files
You can check out a file to read it or edit it and
then check it back in again. You can also check
out earlier versions of a file.
● Check out a file for reading
● Check out a file for editing
● Check out an early version of a file
● Cancelling an editing session
Check out a file for reading
To get a copy of one of your files for reading use the command:
sccs get filename
To get a copy of each of your files for reading use the command:
sccs get SCCS
**Caution**
When you have finished using a file that was fetched from SCCS
by sccs get do not attempt to replace it there: remove it.
Check out a file for editing
To check out a copy of one of your files for editing use the command:
sccs get -e filename
SCCS will record your login name. No other users can checkout this file
but they can see who it is checked out to. If a read-only copy of this file
already exists then it will be overwritten.
To check out a copy of each of your files use the command:
sccs get -e SCCS
Check out an early version of a file
You can check out an earlier version of a file. Use
the command:
sccs get -r version number
Cancelling an editing session
You check out a file, edit it, and then decide that
you don't want this new version.
sccs unedit filename
This removes the file and reverts to the previous
version number.
Checking in files
After editing a file you can check it in with the
command:
sccs delta filename
SCCS will then:
● make sure you are the user who checked it out
● ask you for a descriptive comment on the changes you have
made
● record what changes have been made
● remove the writable copy of the file from the current
directory
Getting information about files
SCCS provides facilities for getting the following
types of information about files under its control.
● Which files are being edited?
● sccs info
● sccs info -u username
● What is the latest versions of each file?
● sccs what filename(s)
● What is the history of this file?
● sccs prt filename
Creating new releases
To begin a new release for a file you "get" it with
the next release number.
sccs get -e -r release_number filename
For example for a file with a version of 2.4 you
would want the new release to be 3.
sccs get -e -r3 sect1.txt
s.sect1.txt:
2.4
new delta 3.1
20 lines
Comparing files under SCCS control
You can compare any two versions of a file that is
under the control of SCCS with the sccsdiff
command:
/usr/sccs/sccsdiff -rversion -rversion s.filename
Using this command produces a line by line
difference between the two versions of the file.
Results are shown in the same format as that
produced by the diff command.

Contenu connexe

En vedette

Version Control != Dependency Management
Version Control != Dependency ManagementVersion Control != Dependency Management
Version Control != Dependency ManagementPatrick van Dissel
 
SVN Best Practices
SVN Best PracticesSVN Best Practices
SVN Best Practicesabackstrom
 
SVN Usage & Best Practices
SVN Usage & Best PracticesSVN Usage & Best Practices
SVN Usage & Best PracticesAshraf Fouad
 
Version Control with SVN
Version Control with SVNVersion Control with SVN
Version Control with SVNPHPBelgium
 
Martin sepulveda
Martin sepulvedaMartin sepulveda
Martin sepulvedadals23
 
Stress in Relatie tot 7 Alledaagse Dingen op het Werk
Stress in Relatie tot 7 Alledaagse Dingen op het WerkStress in Relatie tot 7 Alledaagse Dingen op het Werk
Stress in Relatie tot 7 Alledaagse Dingen op het Werkmulderpc
 
Presentacion manpower marzo 2012
Presentacion manpower marzo 2012Presentacion manpower marzo 2012
Presentacion manpower marzo 2012Jorge Paredes
 
Google Zero Moment Of Truth (ZMOT)
Google Zero Moment Of Truth (ZMOT)Google Zero Moment Of Truth (ZMOT)
Google Zero Moment Of Truth (ZMOT)Isah Kambali
 
Command Channel Slides Week between Aug. 30 to Sept. 5
Command Channel Slides Week between Aug. 30 to Sept. 5Command Channel Slides Week between Aug. 30 to Sept. 5
Command Channel Slides Week between Aug. 30 to Sept. 5USAG Japan
 
Reliv International LunaRich Campaign
Reliv International LunaRich CampaignReliv International LunaRich Campaign
Reliv International LunaRich CampaignMark Murphy
 
Antipsicòtics bit navarra 2013
Antipsicòtics bit navarra 2013Antipsicòtics bit navarra 2013
Antipsicòtics bit navarra 2013alfonsmoret
 
¡CARICIAS PARA EL ALMA!
¡CARICIAS PARA EL ALMA!¡CARICIAS PARA EL ALMA!
¡CARICIAS PARA EL ALMA!pipis397
 
Jugadores de fútbol
Jugadores de fútbolJugadores de fútbol
Jugadores de fútbolBorjakrkic
 
Danubia ceer exposé 20161116
Danubia ceer exposé 20161116Danubia ceer exposé 20161116
Danubia ceer exposé 20161116Stefan Blaas
 
La profecía de Thiaoouba - Michel Desmarquet (Ebook edición 2010)
La profecía de Thiaoouba - Michel Desmarquet (Ebook edición 2010)La profecía de Thiaoouba - Michel Desmarquet (Ebook edición 2010)
La profecía de Thiaoouba - Michel Desmarquet (Ebook edición 2010)gisszenon
 
Mid Season Update de Maria Pascual
Mid Season Update de Maria PascualMid Season Update de Maria Pascual
Mid Season Update de Maria PascualMariaPascualJewelry
 

En vedette (20)

Version Control != Dependency Management
Version Control != Dependency ManagementVersion Control != Dependency Management
Version Control != Dependency Management
 
SVN Best Practices
SVN Best PracticesSVN Best Practices
SVN Best Practices
 
SVN Usage & Best Practices
SVN Usage & Best PracticesSVN Usage & Best Practices
SVN Usage & Best Practices
 
Version Control with SVN
Version Control with SVNVersion Control with SVN
Version Control with SVN
 
Svn Basic Tutorial
Svn Basic TutorialSvn Basic Tutorial
Svn Basic Tutorial
 
Martin sepulveda
Martin sepulvedaMartin sepulveda
Martin sepulveda
 
Stress in Relatie tot 7 Alledaagse Dingen op het Werk
Stress in Relatie tot 7 Alledaagse Dingen op het WerkStress in Relatie tot 7 Alledaagse Dingen op het Werk
Stress in Relatie tot 7 Alledaagse Dingen op het Werk
 
Presentacion manpower marzo 2012
Presentacion manpower marzo 2012Presentacion manpower marzo 2012
Presentacion manpower marzo 2012
 
Google Zero Moment Of Truth (ZMOT)
Google Zero Moment Of Truth (ZMOT)Google Zero Moment Of Truth (ZMOT)
Google Zero Moment Of Truth (ZMOT)
 
Af 2
Af 2Af 2
Af 2
 
Command Channel Slides Week between Aug. 30 to Sept. 5
Command Channel Slides Week between Aug. 30 to Sept. 5Command Channel Slides Week between Aug. 30 to Sept. 5
Command Channel Slides Week between Aug. 30 to Sept. 5
 
Reliv International LunaRich Campaign
Reliv International LunaRich CampaignReliv International LunaRich Campaign
Reliv International LunaRich Campaign
 
Antipsicòtics bit navarra 2013
Antipsicòtics bit navarra 2013Antipsicòtics bit navarra 2013
Antipsicòtics bit navarra 2013
 
¡CARICIAS PARA EL ALMA!
¡CARICIAS PARA EL ALMA!¡CARICIAS PARA EL ALMA!
¡CARICIAS PARA EL ALMA!
 
Hoja de vida
Hoja de vidaHoja de vida
Hoja de vida
 
Jugadores de fútbol
Jugadores de fútbolJugadores de fútbol
Jugadores de fútbol
 
Danubia ceer exposé 20161116
Danubia ceer exposé 20161116Danubia ceer exposé 20161116
Danubia ceer exposé 20161116
 
Presentación daypo
Presentación daypoPresentación daypo
Presentación daypo
 
La profecía de Thiaoouba - Michel Desmarquet (Ebook edición 2010)
La profecía de Thiaoouba - Michel Desmarquet (Ebook edición 2010)La profecía de Thiaoouba - Michel Desmarquet (Ebook edición 2010)
La profecía de Thiaoouba - Michel Desmarquet (Ebook edición 2010)
 
Mid Season Update de Maria Pascual
Mid Season Update de Maria PascualMid Season Update de Maria Pascual
Mid Season Update de Maria Pascual
 

Similaire à Source Code Control System (SCCS)

Similaire à Source Code Control System (SCCS) (20)

L06 a versioning_system_overview
L06 a versioning_system_overviewL06 a versioning_system_overview
L06 a versioning_system_overview
 
Clear case
Clear caseClear case
Clear case
 
Linux week 2
Linux week 2Linux week 2
Linux week 2
 
CSA-lecture 6.pptx
CSA-lecture 6.pptxCSA-lecture 6.pptx
CSA-lecture 6.pptx
 
SVN Information
SVN Information  SVN Information
SVN Information
 
55 best linux tips, tricks and command lines
55 best linux tips, tricks and command lines55 best linux tips, tricks and command lines
55 best linux tips, tricks and command lines
 
ClearCase Basics
ClearCase BasicsClearCase Basics
ClearCase Basics
 
Linux administration training
Linux administration trainingLinux administration training
Linux administration training
 
Unix Shell Script - 2 Days Session.pptx
Unix Shell Script - 2 Days Session.pptxUnix Shell Script - 2 Days Session.pptx
Unix Shell Script - 2 Days Session.pptx
 
SVN Tool Information : Best Practices
SVN Tool Information  : Best PracticesSVN Tool Information  : Best Practices
SVN Tool Information : Best Practices
 
Linux commands
Linux commandsLinux commands
Linux commands
 
Expo ciberseguridad
Expo ciberseguridadExpo ciberseguridad
Expo ciberseguridad
 
cibers
ciberscibers
cibers
 
Embedded Linux Kernel - Build your custom kernel
Embedded Linux Kernel - Build your custom kernelEmbedded Linux Kernel - Build your custom kernel
Embedded Linux Kernel - Build your custom kernel
 
Introduction to s cons
Introduction to s consIntroduction to s cons
Introduction to s cons
 
Linux: Basics OF Linux
Linux: Basics OF LinuxLinux: Basics OF Linux
Linux: Basics OF Linux
 
BuildStuff.LT 2018 InSpec Workshop
BuildStuff.LT 2018 InSpec WorkshopBuildStuff.LT 2018 InSpec Workshop
BuildStuff.LT 2018 InSpec Workshop
 
Linux Basics.pptx
Linux Basics.pptxLinux Basics.pptx
Linux Basics.pptx
 
DevOpsDays InSpec Workshop
DevOpsDays InSpec WorkshopDevOpsDays InSpec Workshop
DevOpsDays InSpec Workshop
 
Unix cmc
Unix cmcUnix cmc
Unix cmc
 

Dernier

PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxNikitaBankoti2
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfChris Hunter
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesShubhangi Sonawane
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Shubhangi Sonawane
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 

Dernier (20)

PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 

Source Code Control System (SCCS)

  • 2. SCCS ● essential tool for any project with multiple source files or which has several people working with multiple source files. ● provides a way to keep track of a source file's development and to prevent it from being altered by more than one person at a time. ● first source code revision control system ● dominant version control system until the release of the Revision Control System. ● generally considered obsolete. However, its file format is still used internally by a few other revision control programs, including BitKeeper and TeamWare.
  • 3. SCCS can be used for... ● Putting files under SCCS control ● Checking out files ● Checking in files ● Getting information about files ● Creating new releases ● Comparing files under SCCS control
  • 4. Putting files under SCCS control Files are placed under the control of SCCS by making an SCCS directory and creating the SCCS file. You also have the option of placing ID keywords in each file. ● Making an SCCS directory ● Inserting SCCS ID keywords in a file ● Creating an SCCS file
  • 5. Making an SCCS directory ● To create the SCCS directory use the command: mkdir SCCS ● The directory name must be in upper case.
  • 6. Inserting SCCS ID keywords in a file ● You can put one or more ID keywords in each file. These keywords are used to display information about the file whenever a read only version is checked out. SCCS ID keywords include: %G% the date of the delta %I% sid of the retrieved text %M% the current module name %R% the current release number %W% a shorter form for %Z%%M%<tab>%I% %Z% string used by the what command
  • 7. Creating an SCCS file ● To place files under the control of SCCS use the command: sccs create filename(s) ● For each filename given as an argument sccs create does the following: ● filename is moved to ,filename ● a history file s.filename is created in the SCCS subdirectory ● a "read only" copy of the initial version of the file is made by sccs get ● You can use the ls command to check that the history files have been created. ls SCCS ● Now you can remove the ,filename files: rm ,*
  • 8. Checking out files You can check out a file to read it or edit it and then check it back in again. You can also check out earlier versions of a file. ● Check out a file for reading ● Check out a file for editing ● Check out an early version of a file ● Cancelling an editing session
  • 9. Check out a file for reading To get a copy of one of your files for reading use the command: sccs get filename To get a copy of each of your files for reading use the command: sccs get SCCS **Caution** When you have finished using a file that was fetched from SCCS by sccs get do not attempt to replace it there: remove it.
  • 10. Check out a file for editing To check out a copy of one of your files for editing use the command: sccs get -e filename SCCS will record your login name. No other users can checkout this file but they can see who it is checked out to. If a read-only copy of this file already exists then it will be overwritten. To check out a copy of each of your files use the command: sccs get -e SCCS
  • 11. Check out an early version of a file You can check out an earlier version of a file. Use the command: sccs get -r version number
  • 12. Cancelling an editing session You check out a file, edit it, and then decide that you don't want this new version. sccs unedit filename This removes the file and reverts to the previous version number.
  • 13. Checking in files After editing a file you can check it in with the command: sccs delta filename SCCS will then: ● make sure you are the user who checked it out ● ask you for a descriptive comment on the changes you have made ● record what changes have been made ● remove the writable copy of the file from the current directory
  • 14. Getting information about files SCCS provides facilities for getting the following types of information about files under its control. ● Which files are being edited? ● sccs info ● sccs info -u username ● What is the latest versions of each file? ● sccs what filename(s) ● What is the history of this file? ● sccs prt filename
  • 15. Creating new releases To begin a new release for a file you "get" it with the next release number. sccs get -e -r release_number filename For example for a file with a version of 2.4 you would want the new release to be 3. sccs get -e -r3 sect1.txt s.sect1.txt: 2.4 new delta 3.1 20 lines
  • 16. Comparing files under SCCS control You can compare any two versions of a file that is under the control of SCCS with the sccsdiff command: /usr/sccs/sccsdiff -rversion -rversion s.filename Using this command produces a line by line difference between the two versions of the file. Results are shown in the same format as that produced by the diff command.