RE: How just to intercept merging “conflicts”, nothing else

BOGGESS Rod CORE Rod.Boggess at tenova.com
Wed Feb 5 14:20:16 UTC 2014



From: mercurial-bounces at selenic.com [mailto:mercurial-bounces at selenic.com] On Behalf Of Scott Palmer
Sent: Wednesday, February 05, 2014 8:49 AM
To: Pietro Moras
Cc: mercurial at selenic.com
Subject: Re: How just to intercept merging “conflicts”, nothing else

On Wed, Feb 5, 2014 at 2:40 AM, Pietro Moras <studio-pm at hotmail.com<mailto:studio-pm at hotmail.com>> wrote:

The simplest, more direct way for instructing (i.e.: configuring) Mercurial (I mean: just Mercurial, no other products, nor tools):
– Please just intercept possible source merge “conflicts”, nothing else, as I intend to take full responsibility of them.


I kindly ask a practical suggestion on this topic as, after having read such notes as “MergeToolConfiguration – Mercurial”, I feel more confused than before.
And, please, if you don't appreciate such a question, I'd appreciate if you just ignored it. Thanks!
- P.M.

hg help merge-tool
...
   "internal:fail"
      Rather than attempting to merge files that were modified on both
      branches, it marks them as unresolved. The resolve command must be used
      to resolve these conflicts.
...

so I think you want:

hg merge -tool internal:fail


Cheers,

Scott

:-:- :-:- :-:- :-:- :-:- :-:- :-:- :-:- :-:- :-:-

Are we sure we’re answering the question he’s asking. I feel like maybe what he’s asking is how to configure hg.exe (not thg.exe) to display a merge editor only when there’s a merge conflict. Like, after it has already attempted a mercurial merge, but found contention, and is prompting for a tool to finish what it couldn’t do internally.

I use TortoiseHg, and it configures mercurial to do this by default. I don’t know which specific settings it uses, except the ones I already showed him in my mercurial.ini: [merge-tools] and [merge-patterns].

Pietro, can you clarify? Can you also fill us in on what you’ve already tried, what you saw vs what you wanted to see? Remember, if you’re worried about making a permanent change to your repo, you can always file-copy the repo and discard the copy, leaving the original intact. It would help us tremendously to understand your needs.





[Tenova]

<http://www.tenova.com>

<http://http://www.tenova.com>

Tenova: advanced technologies for the metals and mining industries
Visit our website at www.tenova.com<http://www.tenovagroup.com/>

________________________________

Confidentiality Notice : This message, together with its attachments, contains strictly confidential information and is intended only for the addressee identified above, who is the sole party authorized to use and copy it and, assuming any related liability , to forward it to others. Anyone receiving this message by mistake or reading it without authorization is hereby notified that storage, reproduction, disclosure or distribution of the message to persons other than the addressee is strictly forbidden. They are asked to return the message immediately to the sender and to erase the original message received.
Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20140205/538953b9/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: imagee2b020.JPG
Type: image/jpeg
Size: 16909 bytes
Desc: imagee2b020.JPG
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20140205/538953b9/attachment-0002.jpe>


More information about the Mercurial mailing list