文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>SCCS Chapter 4

SCCS Chapter 4

时间:2005-05-17  来源:solaris10_x86

Controlling and Tracking SCCS File Changes

Controlling and Tracking SCCS File Changes

The SCCS command and file system are primarily used to control access to a file and to track who altered a file, why it was altered, and what was altered.

Controlling Access to SCCS files

Three kinds of access can be controlled in an SCCS file system:

File Access Controls

Directories containing SCCS files should be created with permission code 755 (read, write, and execute permissions for owner; read and execute permissions for group members and others). The SCCS files themselves should be created as read-only files (444). With these permissions, only the owner can use non-SCCS commands to modify SCCS files. If a group can access and modify the SCCS files, the directories should have group write permission.

User Access Controls

The admin command with the -a flag can designate a group of users that can make changes to the SCCS file. A group name or number can also be specified with this flag.

Version Access Controls

The admin command can lock, or prevent, various versions of a file from being accessed by the get command by using header flags.

-fc Sets a ceiling on the highest release number that can be retrieved
-ff Sets a floor on the lowest release number that can be retrieved
-fl Locks a particular release against being retrieved

Tracking Changes to an SCCS File

There are three ways to track changes to an SCCS file:

  • Comments associated with each delta
  • Modification Request (MR) numbers
  • The SCCS commands.

Tracking Changes with Delta Comments

After an SCCS file is updated and a new delta created, the system prompts for comments to be associated with that delta. These comments can be up to 512 characters long and can be modified with the cdc command.

cdc Changes the comments associated with a delta

The get command with the -l flag prints out the delta table and all the delta comments for any version of a file. In addition to storing the comments associated with a delta, the delta table automatically stores the time and date of the last modification, the real user ID at the time of the modification, the serial numbers of the delta and its predecessor, and any MR numbers associated with the delta.

Tracking Changes with Modification Request Numbers

The admin command with the -fv flag prompts for MR numbers each time a delta is created. A program can be specified with the -fv flag to check the validity of the MR numbers when an attempt is made to create a new delta in the SCCS file. If the MR validity-checking program returns a nonzero exit value, the update will be unsuccessful.

The MR validity-checking program is created by the user. It can be written to track changes made to the SCCS file and index them against any other database or tracking system.

Tracking Changes with SCCS commands


sccsdiff Compares two SCCS files and prints their differences to standard output

The delta command with the -p flag acts the same as the sccsdiff command when the file is updated. Both of these commands allow you to see what changes have been made between versions.

prs Formats and prints specified portions of an SCCS file to standard output

This command allows you to find the differences in two versions of a file.

相关阅读 更多 +
排行榜 更多 +
找茬脑洞的世界安卓版

找茬脑洞的世界安卓版

休闲益智 下载
滑板英雄跑酷2手游

滑板英雄跑酷2手游

休闲益智 下载
披萨对对看下载

披萨对对看下载

休闲益智 下载