<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">2013/5/17 Matt Mackall <span dir="ltr"><<a href="mailto:mpm@selenic.com" target="_blank">mpm@selenic.com</a>></span><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div class="im">On Fri, 2013-05-17 at 13:12 -0300, André Felipe Dias wrote:<br>
> Hi,<br>
><br>
> I understand why the '--parent' option in the hg backout command was turned<br>
> DEPRECATED in <a href="http://selenic.com/hg/rev/1209de02034e" target="_blank">http://selenic.com/hg/rev/1209de02034e</a> However, the term<br>
> DEPRECATED suggests that there is a better solution or command for the<br>
> problem, but there is not since its flaws are inherent to DVCS in general<br>
> due to the DAG itself.<br>
<br>
</div>Lots of projects use 'deprecated' to mean 'we are removing this feature<br>
'. This is not how we do things in Mercurial. Instead, 'deprecated'<br>
means 'we are hiding this feature from all new users'. But in neither<br>
usage is "..and there's a better way to do it" a necessary implication.<br></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div class="im"><br>
> Wouldn't it be better to change '--parent' status to something like a<br>
> WARNING and complement the '-v' help text? In this post<br>
> <a href="http://schacon.github.io/git/howto/revert-a-faulty-merge.txt" target="_blank">http://schacon.github.io/git/howto/revert-a-faulty-merge.txt</a> there is a<br>
> good analysis of the problem that could be helpful.<br>
<br>
</div>To un-deprecate it, you'll have to show us a non-broken use case.<br>
<span class=""><font color="#888888"><br>
--<br>
Mathematics is the supreme nostalgia of our time.<br></font></span></blockquote><div><br></div><div style>I don't think the existence of a non-broken use case is essential or even possible. Simply, there is no alternative sometimes! As in a wrong merge between an incomplete feature branch and the default branch. Yes, there will be implications, but they are unavoidable and inherent to DVCS and not a hg's limitation.</div>
<div style><br></div><div style>When a situation like this occurs and a user searches for a solution, the backout command is the best shot but its help says:</div><div style><br></div><div style>    "Note: backout cannot be used to fix either an unwanted or incorrect merge."<br>
</div><div style><br></div><div style>This is misinformation! The backout command can fix it through the '--parent' option, but there are implications. I think the help text should point this out instead of hide this information.<br>
</div><div style><br></div><div style>In short, the '--parent' option should be un-deprecated because it is absolutely necessary in some quite specific situations and there isn't another choice. The current help text doesn't make this clear. Instead, it points to a wrong direction!</div>
<div style><br></div><div style>André</div><div style><br></div><div style><br></div></div><br></div></div>