<div dir="ltr"><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"><span class="im" style="font-size:12.8px">> > pctx is p1, second parent only exists in working directory, not in<br></span><span class="im" style="font-size:12.8px">> > changeset history or tmpwctx or shelvectx<br></span><span class="im" style="font-size:12.8px">><br></span><span class="im" style="font-size:12.8px">> I forgot to write that this situation is when merge is not commited, when<br></span><span class="im" style="font-size:12.8px">> merge is commited then you are right</span><span class="im" style="font-size:12.8px"><br></span><span style="font-size:12.8px">But shouldn't a merge be committed as it is dirty?</span></blockquote><div><br></div><div>You are right, i didnt think about this. I have to check this once again. </div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-03-26 17:05 GMT+01:00 Yuya Nishihara <span dir="ltr"><<a href="mailto:yuya@tcha.org" target="_blank">yuya@tcha.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Sat, 26 Mar 2016 16:50:37 +0100, Piotr Listkiewicz wrote:<br>
> > pctx is p1, second parent only exists in working directory, not in<br>
> > changeset history or tmpwctx or shelvectx<br>
><br>
> I forgot to write that this situation is when merge is not commited, when<br>
> merge is commited then you are right<br>
<br>
</span>But shouldn't a merge be committed as it is dirty?<br>
<span class=""><br>
> >> > +def restoreparents(repo, parents):<br>
> >> > +    if len(parents) > 1:<br>
> >> > +        repo.setparents(parents[0],<br>
> >> > +                        parents[1])<br>
> >> Maybe it would need begin/endparentchange().<br>
> ><br>
> > localrepo.setparents invokes begin/endparentchange() internally on<br>
> > dirstate<br>
<br>
</span>Oh, you're right. So debugsetparents won't have to do that, too.<br>
</blockquote></div><br></div>