Version control
Version control is the practice of keeping every saved state of a file, model or program as a numbered version with a record of what changed, who changed it and why. It lets a team compare versions, return to an earlier one and show which version produced a given result.
What it is
Version control is the practice of storing each saved state of a file, workbook, model or program as a separate numbered version, together with a record of what changed, who changed it and why. In software it is also called revision control or source control, and it is one part of configuration management.
A version control arrangement has four parts:
- A version identifier, such as a number or a date-and-letter label, that is unique to each saved state.
- A change log that states the content of each change, its author and its reason.
- A store that keeps earlier versions so that any of them can be compared, restored or, in software tools, merged.
- A rule that names the one version that is valid for use, so that only one copy supports decisions.
NIST describes a configuration baseline as a set of specifications that has been formally reviewed and agreed at a point in time and can be changed only through change control procedures. A reviewed and approved version of a model plays the same role. Later changes are measured against it.
Finance work uses two forms. Dedicated tools track code, scripts and queries line by line. Spreadsheets have no built-in history of this kind, so a naming convention, a version sheet inside the workbook and an archive folder do the same job.
Why it matters
A figure can be trusted only if the version that produced it can be identified. Without version control, two people can work on different copies of one workbook, and a reported number cannot be traced to the file behind it.
ICAEW states that a clear and agreed protocol is needed to record version numbers and to inform co-authors and users when a file changes. Its Financial Modelling Code describes version control and the multiplication of files as a major modelling risk.
Version control also supports review. A reviewer who sees what changed since the approved version reads a short list of changes instead of the whole model.
Worked example
Illustrative numbers. A planning workbook is approved as version 1.0. Two later changes follow:
- Version 1.1 changes a growth assumption from 4% to 5%. The log records the author, the reason and the reviewer.
- Version 1.2 adds a cost line of 200 to a budget of 10,000.
A reviewer compares version 1.2 with version 1.0 and finds exactly two changes, both with a reason. A report issued last month used version 1.0, so the log shows which assumptions that report held. If the cost line proves wrong, the team restores version 1.1 and repeats the change correctly.
Who uses it
- FP&A analysts number each planning model version and keep the log of assumption changes.
- Business controllers confirm that reported figures come from the approved version.
- Quantitative developers and data analysts keep scripts and queries in a repository with a history of every change.
- Accountants archive the reviewed copy of a workbook used in a close.
- Auditors use the log and the archived versions to trace a number to its source.
Common confusions
- Version control is not a backup. A backup restores lost files, while version control records the meaning of each change.
- File names such as “final” and “final2” are not version control. They carry no change log and no rule on which file is the valid one.
- Version control is not change control. Version control records what changed, and change control decides whether a change is authorised.
- A version history does not make a model correct. The versions can all contain the same error.