Additional questions - Merge does not list file as conflict although file has been changed

Kastner Masilko, Friedrich kastner-masilko at at.festo.com
Fri Jul 12 15:39:53 UTC 2013


> From: mercurial-bounces at selenic.com [mailto:mercurial-bounces at selenic.com] On Behalf Of Matthias Tietz
>
> After getting the hints I needed to understand why a change was not displayed as conflict I searched the
> root cause of the user error. In my point of view it was a merge where the relevant change was not taken.
>
> I tried to reproduce it and I have always the expected result except I do not perform a commit and manually
> revert all changes. I talked to the user who does the merge but he could not remember having done a
> manually revert.
>
> My question: Could there be another situation where a merge could be influenced in a bad way? I had a look
> to this conversation http://selenic.com/pipermail/mercurial/2012-March/042291.html where someone mentioned
> a strange behaviour by using Araxis merge (we > are also using this tool)
>
> Could a tool influence Mercurial not taking the “correct” version of a file during a merge?

I think it is important to repeat a detail about the merge process at this point. The process actually consists of two parts: the merge and the commit. First you merge two revisions into a merged working copy. Then you commit this working copy, producing a change-set with two parents, aka. merge commit.

In light of this it should be clear that of course everything could be done between the merge step and the commit step. You can even fake totally different parents for your working copy before committing. This is e.g. what THG is doing if you select the "Discard changes from merge target" option: it fakes a merge by means of "hg debugsetparents".

That said, especially with merges of merges of merges, even with a linear history in one file, Mercurial could end up with deciding that 2 version's file content has changed w.r.t. the ancestor, so it will invoke your configured merge-tool in silent mode. Now if this tool is e.g. simply dropping one side, you could get your described effect.

Regards,
Fritz


Development Software Systems
Festo Gesellschaft m.b.H.
Linzer Strasse 227
Austria - 1140 Wien

Firmenbuch Wien
FN 38435y
UID: ATU14650108

Tel: +43(1)91075-198
Fax: +43(1)91075-282
www.festo.at

Der Inhalt dieser E-Mail und moeglicher Anhaenge sind ausschliesslich fuer den bezeichneten Adressaten bestimmt.
Jede Form der Kenntnisnahme, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail und
moeglicher Anhaenge durch unberechtigte Dritte ist unzulaessig. Wir bitten Sie, sich mit dem Absender der E-Mail in
Verbindung zu setzen, falls Sie nicht der Adressat dieser E-Mail sind sowie das Material von Ihrem Computer zu loeschen.

This e-mail and any attachments are confidential and intended solely for the addressee. The perusal, publication, copying or
dissemination of the contents of this e-mail by unauthorised third parties is prohibited. If you are not the intended recipient of this
e-mail, please delete it and immediately notify the sender.



More information about the Mercurial mailing list