Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get mercurial to emit base revision of conflicted file as well as modified version?

Tags:

mercurial

I'm trying to merge two branches together using mercurial and there are some conflicts. When working in Subversion, merge conflicts would result in the conflicted file being replaced by a unified diff, my own version of the file with the ".mine" extension added as well as the last checked in version of the file with the ".rxxx" extension added.

With mercurial, I only get the unified diff as well as my own version with the ".orig" extension added.

I'm used to editing the merges myself in my own time in eclipse using the "Compare With > Each Other" command or using FileMerge, however as the base revision is not available without manually going and fetching it I can't work this way any more.

I do not want to perform the merging during the hg merge command - I prefer to do it in my own time.

Is there a setting or extension I can use to make this possible?

like image 661
Shabbyrobe Avatar asked Dec 16 '22 21:12

Shabbyrobe


1 Answers

We have a built-in merge tool for this called internal:dump. So with

[ui]
merge = internal:dump

you will be brought back to the good old Subversion-days, or something close to it.

like image 150
Martin Geisler Avatar answered Apr 27 '23 00:04

Martin Geisler