<div dir="ltr"><div class="gmail_quote">Im resending last message cause there was no answer to it:</div><div class="gmail_quote"><br><div dir="ltr"><span class=""><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 style="font-size:12.8px">We should stick to a consistent behavior. This current patch does not</span><br style="font-size:12.8px"><span style="font-size:12.8px">1) if the uncommited branch exists it will update to the head of wc.branch()<br></span><span style="font-size:12.8px">2) if the uncommited branch does not exists it will update to the head of p1.branch(),</span><br style="font-size:12.8px"><span style="font-size:12.8px">We should also pick either p1.branch() (discard before update) or wc.branch(discard after update)</span></blockquote><div><br></div></span><div>Ok, this is dealing issue dealing with '<span style="font-size:12.8px">fix `hg update` with uncommited new branch change</span>'(without --clean option). So from what i understand if current branch(working directory branch) exists we should update to the head of p1.branch(). What about this situation:</div><div><br></div><div><div><div>o  changeset:   4:8bfba5c70947</div><div>|  tag:         tip</div><div>|  parent:      2:5b1d7f055b16</div><div>|  user:        liscju <<a href="mailto:piotr.listkiewicz@gmail.com" target="_blank">piotr.listkiewicz@gmail.com</a>></div><div>|  date:        Fri Mar 18 12:06:09 2016 +0100</div><div>|  summary:     f</div><div>|</div><div>|    o  changeset:   3:16fedbfebd5c</div><div>|    |  branch:      dev</div><div>|    |  parent:      0:c4d0e2f61fe9</div><div>|    |  user:        liscju <<a href="mailto:piotr.listkiewicz@gmail.com" target="_blank">piotr.listkiewicz@gmail.com</a>></div><div>|    |  date:        Fri Mar 18 12:01:37 2016 +0100</div><div>|    |  summary:     e</div><div>|    |</div><div>@  |  changeset:   2:5b1d7f055b16</div><div>|    |  user:        liscju <<a href="mailto:piotr.listkiewicz@gmail.com" target="_blank">piotr.listkiewicz@gmail.com</a>></div><div>|    |  date:        Fri Mar 18 12:00:46 2016 +0100</div><div>|    |  summary:     c</div><div>|    |</div><div>o   |  changeset:   1:e3773bd721b2</div><div>|   /   user:        liscju <<a href="mailto:piotr.listkiewicz@gmail.com" target="_blank">piotr.listkiewicz@gmail.com</a>></div><div>| /     date:        Fri Mar 18 12:00:32 2016 +0100</div><div>|       summary:     b</div><div>|</div><div>o  changeset:   0:c4d0e2f61fe9</div><div>   user:        liscju <<a href="mailto:piotr.listkiewicz@gmail.com" target="_blank">piotr.listkiewicz@gmail.com</a>></div><div>   date:        Fri Mar 18 12:00:25 2016 +0100</div><div>   summary:     a</div></div><div><br></div><div><br></div></div><div>We are on the changeset 2 right now, we change branch of working directory to dev. We run bare 'hg update', current branch exists(dev have head on revision 3), and 'hg update' will jump to the head of parent branch, so to the revision 4(on branch default as parent branch) - is this expected behaviour?</div><div><br></div></div></div></div>