Software Engineering · Configuration Management Reuse and Reengineering
Change and Version Control
Overview
Change and version control is the part of Software Configuration Management (SCM) that keeps software artefacts under control as they evolve.
It explains how a team identifies what must be controlled, approves and records changes, stores multiple versions, and reconstructs any baseline or release later.
It sits inside the UGC topic area Configuration Management, Reuse and Reengineering, but the focus here is SCM, change control, version control, baselines, repositories and related terminology.
Before studying it, a student should know the basic software life-cycle idea that requirements, design, code, test and documentation are work products that change over time.
The exam tests precise definitions: version, release, variant, baseline, audit trail, configuration audit, configuration status accounting, and the behaviour of centralized and distributed version control systems such as Git.
Key concepts
- Software Configuration Management (SCM) is the discipline for identifying configuration items, controlling changes to them, recording and reporting their status, and auditing the resulting product.
Its four standard activities are configuration identification, configuration control, configuration status accounting, and configuration audit. Release management and delivery are closely associated. - A Software Configuration Item (SCI) is any work product placed under SCM control: source code, requirements, design documents, test cases, test scripts, build scripts, documentation, data files, and interface specifications.
Human-authored source and documentation are normally committed to a source-control repository; build outputs and automatically generated files are usually excluded unless the project policy explicitly requires them. - A baseline is an approved configuration of one or more configuration items at a specific point in time. It is a reference point for later work and should be changed only through formal change control.
Common baseline names are functional baseline, allocated baseline and product baseline. - Configuration control is the process of evaluating, approving or rejecting, and implementing changes to controlled items. It normally uses a Change Request (CR) and a Change Control Board (CCB).
- A Change Request (CR) records what change is wanted, why it is wanted, which items are affected, its priority, impact, approval decision and implementation status.
The record of the CR and its changing status is part of configuration status accounting. - An audit trail is a chronological record of changes showing who made a change, when it was made, why it was made and what was modified.
In a version-control system this is supplied by commit history, , author metadata, timestamps and change comments. It is not the same as a configuration audit. - Configuration status accounting records and reports the status of configuration items, versions, baselines and change requests.
Configuration audit formally verifies that the product and its records agree with the approved baseline and requirements; the two usual forms are Functional Configuration Audit (FCA) and Physical Configuration Audit (PCA). - A version is an instance of a system that is functionally distinct in some way from other instances. It represents evolution of the product.
- A release is an instance of a system distributed to users outside the development team.
- A variant is an instance of a system that is functionally identical to another instance but non-functionally distinct, for example built for different hardware, operating systems or configuration parameters.
- Version control is the mechanism for storing, retrieving and managing multiple versions and revisions of files.
Standard operations are check-out, check-in/commit, update/pull, branch, merge and tag/label. - A revision is a new version produced by a change. A repository stores controlled items, version history, metadata, branches, tags and baselines.
A private workspace is a developer’s isolated copy where edits are made before check-in or commit. - A branch is a separate line of development. A merge combines changes from two lines.
A fast-forward merge is possible when the target branch has no new commits since the branch point, so the branch pointer simply moves forward.
A three-way merge compares two branch versions with their common ancestor; non-overlapping changes merge automatically, while overlapping changes cause a conflict. - A tag or version label is a stable name attached to a specific version or baseline for later retrieval, release or audit. It is not a branch and does not itself create new development.
- A delta or change set is the stored difference between versions. In forward-delta storage, an old base version is stored in full and later versions are reconstructed by applying deltas forward.
In reverse-delta storage, the latest version is stored in full and older versions are reconstructed by applying reverse deltas. - Pessimistic concurrency control locks a file so others cannot edit it.
Optimistic concurrency control allows edits without locks and checks at commit time whether the file’s parent version is still current; if not, the developer must update/merge and test again. - A centralized version control system (CVCS) such as CVS or SVN has one central repository; commits go to the server.
A distributed version control system (DVCS) such as Git or Mercurial gives every clone the full repository and history; a developer can commit locally and later push to a shared repository. - SCM software normally provides synchronization, versioning and revision history, branching, merging, labelling, access control and project forking. Syntax highlighting is an editor/IDE feature, not a core SCM feature.
- The standard SCM objectives are to identify all items that define the configuration, manage changes to them, facilitate construction of different versions of an application, and ensure software quality is maintained as the configuration evolves.
- SCM controls changes caused by evolution of work products, defects found and fixed, and requirement changes. All of these are within its scope.
- Useful full forms: SCM = Software Configuration Management; SCI = Software Configuration Item; VCS = Version Control System; DVCS = Distributed Version Control System; CVCS = Centralized Version Control System; CCB = Change Control Board; CR = Change Request; FCA = Functional Configuration Audit; PCA = Physical Configuration Audit.
IEEE Std 828 is commonly cited for SCM plans, and ISO 10007 gives configuration management guidelines.
How it works
The change-control procedure in SCM follows a controlled sequence:
- Identify configuration items. Decide which artefacts are controlled, give them unique identifiers, and define their version scheme.
- Create a baseline. Approve a set of item versions as a reference point.
- Receive a change request. Record the reason, requested change, affected items and requester.
- Perform impact analysis. The CCB or responsible authority evaluates cost, risk, schedule and technical effect.
- Approve or reject. Record the decision. An approved change is authorised work; a rejected change is not implemented.
- Check out into a private workspace. The developer edits an isolated copy so uncontrolled changes do not enter the baseline directly.
- Edit, test and review. The change is implemented and verified against requirements and regression tests.
- Check in or commit a new version. The repository records the new version, author, time, reason and parent version. This produces the audit trail.
- Audit and report. Configuration status accounting reports status; configuration audit verifies that the delivered items and records match the approved baseline.
- Form a new baseline or release. The approved result becomes the next reference point.
In version-control workflow, the usual distributed sequence is: clone the repository, create a branch, edit files, commit locally, fetch the latest remote changes, merge or rebase, resolve conflicts, test, and push.
A local commit records history in the developer’s own repository; a push publishes commits to the shared repository.
In a centralized system, check-out/update brings the latest file, editing occurs, and commit writes directly to the central repository; the commit can fail if the central file has changed since the developer’s copy was taken.
Drawing the diagram…
Formulas
-
Let a file have versions , where is the full stored size of the base version, is the size of each delta, and is the target version number.
-
Forward-delta reconstruction from :
where is the storage needed to reconstruct version . -
Reverse-delta reconstruction from the latest version :
where is the full size of and is each reverse delta. -
Audit affected-item count using sets:
where is the set of items with one defect, is the set with another defect, and is the overlap. If the sets are disjoint, .
Worked examples
Example 1 — Match the SCM term.
List-I: I. Version, II. Release, III. Variant.
List-II: A. Distributed to users outside the development team, B. Functionally distinct in some way from other instances, C. Functionally identical but non-functionally distinct for different hardware or software.
Reasoning: Version matches B. Release matches A. Variant matches C.
Answer: I-B, II-A, III-C.
Example 2 — Reverse-delta storage.
A repository stores versions using reverse deltas from the latest version. Version 5 is stored in full and is 120 KB. Each reverse delta back to an earlier version is 8 KB. How much data must be applied or read to reconstruct version 2?
Here , , , .
KB.
To reconstruct version 4: KB.
Answer: 144 KB for version 2.
Example 3 — Forward-delta storage.
Version 1 is stored in full as 200 KB. Each subsequent version adds a forward delta of 10 KB. What is the storage needed to reconstruct version 6?
KB.
For version 3: KB.
Answer: 250 KB.
Example 4 — Optimistic concurrency.
Developers P and Q both check out version 7 of a file under optimistic concurrency control. P commits version 8. Q then tries to commit changes based on version 7.
- Q’s commit is based on a stale parent version, so the system rejects it or flags a conflict.
- Q must update to version 8, merge Q’s change with P’s change, resolve any overlapping conflict, and test the merged result.
- Q then commits a new version, say version 9, and pushes it.
Answer: Q’s first commit cannot simply become version 8; it must be rebased or merged after updating.
Example 5 — Statement type.
Statement I: A baseline is an approved configuration and should be changed only through formal change control.
Statement II: An audit trail records who changed an item, when, why and what was changed.
Reasoning: Both are standard SCM definitions. A baseline is a controlled reference point; an audit trail is chronological change evidence.
Answer: Both statements are correct.
Comparison
| Term | Meaning | Functional difference? | Audience or use |
|---|---|---|---|
| Version | Instance of a system differing in some way from other instances | In the standard UGC/SCM convention, functionally distinct | Evolution, development history, internal or external |
| Release | Instance distributed to users outside the development team | Usually a tested, packaged version | Customers, external users |
| Variant | Instance functionally identical but non-functionally distinct | No functional difference | Different hardware, operating system or configuration |
| Point | Centralized VCS | Distributed VCS |
|---|---|---|
| Repository | One central repository | Every clone has full repository and history |
| Commit | Goes to central server | Can be local first; later pushed |
| Offline work | Limited | Full local history and local commits |
| Examples | CVS, SVN | Git, Mercurial |
| Commit failure | Can fail if central copy changed | Push can fail if remote moved; local commit still exists |
| Concept | What it does | Typical evidence |
|---|---|---|
| Configuration status accounting | Records and reports status of items, versions, baselines and change requests | Status reports, change |
| Configuration audit | Verifies product and records conform to baseline and requirements | Audit report, FCA/PCA findings |
| Audit trail | Chronological record of who, when, why and what changed | Commit history, change-request history |
| Operation | Meaning |
|---|---|
| Check-out | Obtain a controlled copy for editing or viewing |
| Check-in / commit | Record changed files as a new version in the repository |
| Branch | Create a separate line of development |
| Merge | Combine changes from two lines of development |
| Tag / label | Attach a stable name to a specific version or baseline |
Revision summary
- SCM activities: identify, control, status accounting, audit.
- A baseline is approved and changed only through formal change control.
- Version = functionally distinct; release = outside development team; variant = functionally identical but non-functionally distinct.
- Audit trail = who, when, why, what; status accounting = status reports; audit = formal verification.
- Commit source code and documentation; do not normally commit build outputs or automatically generated files.
- Git is a DVCS; a local commit is not the same as a push.
- In a centralized VCS, a commit may fail if the central file has changed.
- Optimistic control uses no lock; it checks version at commit and requires merge on conflict.
- Forward delta: ; reverse delta: .
- A tag labels a version or baseline; a branch creates a new line of development.
- Syntax highlighting is not an SCM service; SCM gives synchronization, versioning, history and forking.
- SCM controls changes from evolution, defects and requirement changes.
Previous-year exam insights
- Direct definition questions ask for audit trail, baseline, configuration item, version, release and variant. Check the exact wording: “who, when, why” points to audit trail; “approved configuration” points to baseline.
- Version/release/variant questions are usually statement-type or match-type.
The trap is confusing “functionally identical but non-functionally distinct” with “version”; that description belongs to variant, not version. - SCM-software questions test core functions.
Remember that syntax highlighting is an IDE/editor feature, not a typical source-code-management feature. - Repository-content questions ask what should be committed.
The safe answer is human-authored source and documentation; output and automatically generated files are usually excluded unless policy says otherwise. - Numeric questions on deltas require careful counting.
For reverse deltas from to , the number of deltas is , not . - Assertion–reason questions often state that a baseline changes only through formal change control.
This is true because a baseline is an approved reference configuration. - Workflow questions test local commit versus push, centralized commit failure, branch/merge, fast-forward merge and optimistic conflict handling.
Read whether the system is centralized or distributed before answering. - Match-the-list questions commonly pair SCM activities with descriptions: identification, control, status accounting and audit; also version-control operations with branch, merge, check-out and check-in.
Practice at PARIKSHA
You are ready for the PARIKSHA tests of this sub-topic when you can:
- Define SCM and list its four standard activities without looking at notes.
- Distinguish version, release and variant using functional difference and audience.
- Explain why a baseline can be changed only through formal change control.
- Identify whether a given artefact should be committed to a source-control repository.
- Explain the difference between an audit trail, configuration status accounting and configuration audit.
- Trace a change request from submission through CCB decision, implementation, commit, audit and new baseline.
- Compute storage for forward-delta and reverse-delta version storage.
- Distinguish centralized from distributed version control and local commit from push.
- Explain optimistic versus pessimistic concurrency and describe how a conflict is resolved.
- Match SCM terms and version-control operations to their correct descriptions.
Attempt the PARIKSHA sub-topic test first, then the subject test.