SlideShare ist ein Scribd-Unternehmen logo
1 von 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.

Weitere ähnliche Inhalte

Andere mochten auch

SVN Best Practices
SVN Best PracticesSVN Best Practices
SVN Best Practices
abackstrom
 
SVN Usage & Best Practices
SVN Usage & Best PracticesSVN Usage & Best Practices
SVN Usage & Best Practices
Ashraf Fouad
 
Martin sepulveda
Martin sepulvedaMartin sepulveda
Martin sepulveda
dals23
 
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
USAG Japan
 
Antipsicòtics bit navarra 2013
Antipsicòtics bit navarra 2013Antipsicòtics bit navarra 2013
Antipsicòtics bit navarra 2013
alfonsmoret
 
¡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útbol
Borjakrkic
 

Andere mochten auch (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
 

Ähnlich wie Source Code Control System (SCCS)

Introduction to s cons
Introduction to s consIntroduction to s cons
Introduction to s cons
dcshi
 

Ähnlich wie 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
 

Kürzlich hochgeladen

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
QucHHunhnh
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
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
heathfieldcps1
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
ssuserdda66b
 

Kürzlich hochgeladen (20)

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
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
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...
 
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
 
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
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
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
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
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
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 

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.