This extension builds on the RebaseExtension but adds some simple logic that chooses a merge instead of a rebase if there are conflicts.

This is useful since manual merges are error prone and a merge commit more clearly expresses each side of the merge, and the merge resolution choices, than a rebase (which tends to bundle all the local changes and the merge ops together and giving little chance of a rollback.)

The background for this is described in this StackOverflow question.

1. Status

This extension is/is not distributed with Mercurial.

Author: MarcusLindblom

Download site:

Issue tracker:

2. Overview

3. Configuration

Configure your .hgrc to enable the extension by adding following lines:

rebaseif = path/to/

4. See also