Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Revision control stress tests
Perl Makefile
Fetching latest commit...
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
img Images for an experiment on the results table
lib/Test Support bzr's different merge algorithms
Makefile Sort results table by difficulty

Merge This!


Merge This! is a test suite for revision control tools designed to stress test their merge algorithms. Think of it as an Acid3 test for version control systems.

All version control systems have a notion of merging two separate development branches. One measure of a VCS's quality is how well it handles merges. Is it able to merge two branches without manual conflict resolution? Does the code still behave correctly after automatic resolution? If a conflict does require manual resolution, how complicated is the conflict?

Merge This! has a number of small test cases representing typical development patterns which might cause merge conflicts. Each VCS performs the merge and we evaluate the results. The goal is to codify many software revision patterns in this fashion.

Each test case contains one small C program. The branches modify this program in different ways. For a test to pass all of the following must work:

  • VCS automatically merges the two branches (no manual intervention)
  • the C program compiles
  • the compiled C program produces correct output

Failing earlier in this list is better. The worst possible scenario is a VCS that silently resolves a merge but does it in a way that breaks your program at runtime (I hope you have a good test suite :-)

Running the Tests

The tests support these tools: bzr, darcs, git, hg. To test a tool, run the appropriate make target:

$ make git

Current Results

The table of results below is based on these VCS versions:

  • Bazaar - 2.6.0
  • Darcs - 2.10.0
  • Git - 2.5.1
  • Mercurial - 3.5

The tests are sorted by an approximation of how hard they should be to pass.

Bazaar Darcs Git Mercurial
nearby-changes OK OK OK OK
same-change OK OK OK OK
move-modify OK OK OK OK
adjacent-changes Fail OK Fail Fail
trailing-whitespace Fail Fail OK Fail
indent-block Fail Fail OK Fail
indent-block-py Fail Fail Fail Fail
eol-comment Fail Fail Fail Fail
dual-renames Fail OK Fail Fail
Something went wrong with that request. Please try again.