GCSE · Computer Science · Eduqas · Spec C500QS

Revision control

Three programmers, one game, one big problem: nobody knows who broke it, or how to undo it.

Computer Science · Revision control

Combine or conflict?

Pick a pair of edits, then pick what happens when the two programmers' work is brought together.

Still to sort

Combined into one version (0)

The two sets of changes do not clash.

Where the line is: Different people changing different parts of the project (even in the same file) can be merged into one version.

Conflict: must be resolved first (0)

Both people changed the same part in different ways.

Where the line is: A conflict needs both things: the same part of the file, and different changes to it. Until someone resolves it, the versions cannot be combined.

6 of 6 still to sort.

Two programmers start from the same version of one file and edit it separately. Revision control now has to bring their work together. Decide what happens for each pair of edits.

What does it actually keep?

Is it just saving?

A friend says, "Revision control? That's just saving your code, isn't it?"

Which idea is closest to what you think revision control keeps?
How sure are you?

Reading a history

Which revision broke the game?

On Monday the coin game worked: collecting a coin raised the score by 1. On Tuesday afternoon, players report that collecting a coin now lowers the score. Read the revision history (an illustrative example). Which revision introduced the error?

The project's revision history — which line goes wrong?

Comparing two versions

Read a difference between two versions

Here are the lines of two versions of a short program (an illustrative example). For each line, tick which version or versions it appears in.

  • A Version 1
  • B Version 2
  1. name = input("Name? ")
  2. lives = 3
  3. print("Hello " + name)
  4. print("Welcome " + name)
  5. score = 0
  6. print("Bye")

Explain it

Write it, then mark yourself

Explain why revision control is useful when a team develops a program. [3 marks]

0 words · your answer stays on this page and is not sent anywhere.

WHAT YOU'VE LEARNED

A quick recap of today's lesson.

Keep every version of a program, see what changed, undo what broke it, and combine a team's work.

What you need to know

  • Revision control is utility software that records the changes made to files, such as program code, over time.
  • Each saved set of changes is stored as a separate version (revision), so a history of versions builds up.
  • Every version is stored with who made the change, when it was made and a short description of it.
  • Have a goYour classmate Zed says, "Revision control is just a fancy Save button." Name the three details stored with every version that show Zed is wrong.

    Who made the change, when it was made, and a short description of what was changed.

    A plain save only leaves you with the newest file; revision control keeps each version together with those details.

  • Because the versions are kept, earlier versions of a file can be viewed, not just the newest.
  • Comparing two versions shows exactly which lines were added, removed or changed.
  • Have a goVersion 2 of a file is identical to version 1, except it has one extra line at the very end. What does comparing the two versions show?

    One line added, and nothing removed or changed.

    A comparison reports line by line, so only the extra line differs; it does not mark the whole file as changed.

  • A file can be restored (rolled back) to an earlier version, for example when a later change introduced an error.
  • Have a goA change has broken your program. You have opened an older working version to look at it, but your current file is still broken. Which action puts the working version back: viewing, comparing or restoring?

    Restoring (rolling back) the file to that earlier version.

    Viewing and comparing only let you look; restoring is the action that returns the file to the earlier version.

  • Every change is recorded with its author, so the changes of different people on the same files can be tracked.
  • Changes made separately by different people to the same project can be combined (merged) into one version.
  • If two people changed the same part of a file in different ways, that is a conflict, and it must be resolved before the versions can be combined.
  • So a team can work on the same code at the same time without overwriting each other, and can find and undo the change that introduced an error.

The big picture

Revision control is utility software that records the changes made to files over time. It keeps each saved set of changes as a separate version, stored with who made it, when and a short description. That history lets you view earlier versions, compare two versions, restore an earlier one, track who changed what, and merge separate work into one version. Edits only conflict when two people change the same part of a file in different ways.

Key points

1Revision control records changes to files over time and keeps each saved set of changes as a separate version.
2Each version is stored with who made it, when, and a short description, so earlier versions can be viewed, compared and restored.
3Separate changes by different people can be merged into one version; changes to the same part in different ways conflict and must be resolved first.
4It lets a team work on the same code together without overwriting each other, and find and undo the change that introduced an error.

Worked example

Problem

Mia and Tom both start from the same version of quiz.py, where line 8 says lives = 3. Mia changes line 8 to lives = 5. Tom changes line 8 to lives = 2. They try to bring their work together. What happens, and what must they do?

⚠ Watch out

Thinking revision control is only a backup copy, or that two people editing the same file always clash. It keeps a labelled history of versions, and separate changes combine; only different changes to the same part conflict.

🧠

Memory hook

Think of a time machine with name tags: every version is kept and labelled with who, when and why, and you can step back to any of them.

✓

Check yourself

Without looking back: a project's history lists six versions. Say what each entry tells you, and name two things you could then do with any one of those versions.

Flashcards

(13)
What is revision control?
Utility software that records the changes made to files, such as program code, over time.
What does revision control store each time a set of changes is saved?
A separate version (revision), so a history of the file's versions is kept.
What details are stored with each version?
Who made the change, when it was made and a short description of what was changed.
Why can earlier versions of a file be viewed?
Because every saved version is kept, not just the newest one.
What does comparing two versions show?
Exactly which lines were added, removed or changed.
What does restoring (rolling back) a file do?
Returns the file to an earlier version, for example when a later change introduced an error.
How does revision control let a team track changes?
Every change is recorded with its author, so changes by different people can be tracked.
What is merging?
Combining changes made separately by different people to the same project into one version.
When do two people's changes conflict?
When they have changed the same part of a file in different ways.
What must happen to a conflict before the versions are combined?
It must be resolved: someone decides what the conflicting part should be.
Two people edit different parts of the same file. Conflict?
No. Changes to different parts can be combined; only different changes to the same part conflict.
How does revision control stop programmers overwriting each other?
Each person's changes are recorded separately, so several people can work on the same code at the same time and be combined later.
How does the history help when a program has an error?
The change that introduced the error can be identified from the history and undone.

Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.

Learning with Lightbulb is opening soon

You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.

Keep me posted

More Eduqas GCSE Computer Science topics

See the full Eduqas Computer Science curriculum →

How this lesson was checked. This Eduqas GCSE Computer Science (specification C500QS)lesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 16 November 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.