hawkeye
hawkeye

Reputation: 35702

Which merge strategies does mercurial use?

I work in an environment with large scale multi-parallel branching. Looking at GIT I see it has several merge strategies:

already up-to-date
fast-forward
octopus
resolve
recursive

Does Mercurial have the equivalent of each of these? (ie is the implementation of Mercurial's merge algorithm as good as recursive?

Upvotes: 6

Views: 1383

Answers (1)

tonfa
tonfa

Reputation: 24491

  • already up-to-date
  • fast-forward

Those aren't merge strategies, I guess the first one is when there's nothing to merge (obviously supported). The second isn't a merge, updating in hg is equivalent to fast-forward (there's nothing to merge).

  • octopus

Doesn't apply to mercurial, merges are always between two heads.

  • resolve

That's the default merge strategies.

  • recursive

Could probably be done with a custom merge script (hg, like git just call external tools to handle the merge). But nobody seemed interested in it for now, maybe because it doesn't bring a lot of improvements compared to resolve.

Upvotes: 9

Related Questions