<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 4, 2014 at 11:09 PM, Matt Mackall <span dir="ltr"><<a href="mailto:mpm@selenic.com" target="_blank">mpm@selenic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Tue, 2014-11-04 at 22:13 +0100, Bernhard Urban wrote:<br>
> On Tue, Nov 4, 2014 at 7:16 PM, Pierre-Yves David <<br>
> <a href="mailto:pierre-yves.david@ens-lyon.org">pierre-yves.david@ens-lyon.org</a>> wrote:<br>
><br>
> ><br>
> ><br>
> > On 11/04/2014 04:08 PM, Bernhard Urban wrote:<br>
> ><br>
> >> # HG changeset patch<br>
> >> # User Bernhard Urban <<a href="mailto:lewurm@gmail.com">lewurm@gmail.com</a>><br>
> >> # Date 1415116918 -3600<br>
> >> #      Tue Nov 04 17:01:58 2014 +0100<br>
> >> # Node ID 5c6b2329f67f18a6f2bf9fff2ef86f04337b25ff<br>
> >> # Parent  30e0dcd7c5ffd99fb9c2474e9d73ca01a7d292fa<br>
> >> merge: add option to return successful exit code on a 'no-op merge'<br>
> >><br>
> ><br>
> > Can you tell us more about your usecase here ?<br>
> ><br>
> ><br>
> Our concrete situation is that we've a downstream repo (repoB) that we want<br>
> to automatically merge on pushes to its upstream repo (repoA) and run some<br>
> tests.<br>
><br>
> So we do something like `hg clone repoB && hg pull repoA && hg merge &&<br>
> make tests'.  The intended behaviour is that if the merge fails, the whole<br>
> build should be marked as failed (and thus, needs human interaction).<br>
> However, it can happen that for some reasons repoB is already merged with<br>
> repoA and then `hg merge' breaks the chain because it returns something !=0<br>
> since there's nothing to merge.<br>
<br>
</span>We're pretty reluctant to add new flags with very narrow uses. The fact<br>
that we've gotten nearly 10 years without this being proposed suggests<br>
it might be a pretty obscure need.<br></blockquote><div><br></div><div>ok I understand.  Thanks for your comments and suggestions anyway! :)</div><div><br></div><div>-Bernhard</div><div><br></div></div><br></div></div>