2080 12

BIT302 ยท 2080 ยท 5 marks

What is version management? How is it carried Out?

What is version management? How is it carried Out? [5]

Software EngineeringChapter 9: Software Configuration and Release ManagementVersion management and version control

Quick answer

Version management (also called version control or revision control) is the process of tracking and controlling changes made to software source code, documents, and other files over time. It allows multiple versions of a software system to be stored and retrieved, enabling developers to manage the evolution of software components systematically.

Version Management

Definition


Key Concepts in Version Management

  • Version/Revision: A distinct state of a software component at a particular point in time.
  • Baseline: A tested, approved version that serves as the basis for further development.
  • Repository: A central storage location where all versions of files are maintained.
  • Check-in / Check-out: The process of submitting changes to or retrieving files from the repository.

How Version Management is Carried Out

1. Version Identification

Each version of a component is assigned a unique identifier (e.g., v1.0, v1.1, v2.0). Versions may be identified by:

  • Sequential numbering
  • Date/time stamps
  • Attribute-based identification (author, date, purpose)

2. Storage and Repository Management

All versions are stored in a version control repository (e.g., Git, SVN, CVS). The repository maintains:

  • Complete history of all changes
  • Who made the change and when
  • Why the change was made (commit messages)

3. Check-out and Check-in Mechanism

  • A developer checks out a file to work on it (may lock it to prevent conflicts).
  • After modification, the developer checks in the updated file, creating a new version.

4. Branching and Merging

  • Branching: Creating a separate line of development (e.g., for a new feature or bug fix) without affecting the main codebase.
  • Merging: Combining changes from different branches back into the main branch.
Main:    v1.0 -----> v1.1 -----> v2.0
                \               /
Branch:          --> fix-branch

5. Change Logging

Every version change is recorded with:

  • Description of changes made
  • Author name
  • Date and time
  • Version number

6. Conflict Resolution

When two developers modify the same file, the version management system detects conflicts and assists in resolving them before merging.


Benefits of Version Management

BenefitDescription
History trackingFull record of all changes over time
RollbackAbility to revert to a previous stable version
CollaborationMultiple developers can work simultaneously
BackupRepository acts as a secure backup
TraceabilityChanges can be linked to requirements or bug reports

Common Version Management Tools

  • Git (most widely used, distributed)
  • SVN (Subversion) (centralized)
  • CVS (Concurrent Versions System)
  • Mercurial

Note: Version management is a core part of Software Configuration Management (SCM), which also includes build management, change management, and release management.

Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.