It is different since it would provide rebaseif extension (<a href="http://mercurial.selenic.com/wiki/RebaseIfExtension">http://mercurial.selenic.com/wiki/RebaseIfExtension</a>) behaviour.<br><br>&quot;hg pull --rebase&quot; rebase as soon has &quot;hg pull&quot; create a new head<br>
<br>In my proposal, hg fetch would rebase only if no conflict.<br>An improvement proposed on this thread, compared to current rebaseif behaviour,  is that it would use internal:fail as merge tool.<br>As a consequence, the rebase will be done only when remote and local changes concern different files.<br>
It can be seen as a safe rebase (or fast forward merge ;-)<br>If the rebase fail, rebase is aborted, so we rollback to a simple hg pull state.<br>And then it runs hg merge + hg commit.<br><br>The only point that puzzle me is that I don&#39;t really like the auto commit step. It could be ok for merge that succeed with the internal merge step, but it is not great for complicated merge with external tool.<br>
<br>Does anybody know the current fetch behaviour on merge requiring external tool ? auto commit or manual commit ?<br>Does this proposal on fetch side make sense for someone ?<br><br>Regards,<br>Sébastien Deleuze<br><br>
<div class="gmail_quote">On Fri, Jun 17, 2011 at 6:04 PM, Pierre-Yves David <span dir="ltr">&lt;<a href="mailto:pierre-yves.david@logilab.fr">pierre-yves.david@logilab.fr</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
first thank for the time you spend explaining your issue.<br>
<div class="im"><br>
On Fri, Jun 17, 2011 at 04:59:58PM +0200, Sébastien Deleuze wrote:<br>
<br>
&gt; Current behaviour of fetch is based on merge only :<br>
&gt; hg fetch<br>
&gt;<br>
&gt; We could add a parameter like<br>
&gt; hg fetch --rebase<br>
&gt; or<br>
&gt; hg fetch -r<br>
<br>
</div>How this command is different from `hg pull --rebase` ?<br>
<font color="#888888"><br>
--<br>
</font><div><div></div><div class="h5">Pierre-Yves David<br>
<br>
<a href="http://www.logilab.fr/" target="_blank">http://www.logilab.fr/</a><br>
<br>
</div></div><br>-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.10 (GNU/Linux)<br>
<br>
iEYEARECAAYFAk37eyoACgkQElczi7p/bN85RACePmQMFcg4i95VooqYPTPblLvP<br>
u/sAnjTnY8XW68QIFHvFpTnsr6eSEDTE<br>
=0tXG<br>
-----END PGP SIGNATURE-----<br>
<br></blockquote></div><br>