[PATCH] Fix "created new head" being shown incorrectly

Rafael Fernández López ereslibre at kde.org
Sat Jun 5 14:13:23 CDT 2010


Hi,

> Hum? It should *not* print the message: 10 is the merge of 6 into most
> importantly 9, which is a head. So we are just continuing a head and not
> creating new one. Same case than Rafael. Am I missing something ?

I am with you here. Thing is, "created new head" should be shown if
running hg heads after the message is shown shows one head more than
if ran before it.

There is also the other point of view, which is what I was defending
some days ago before submitting this patch (but it is also probably
more confusing to the user): "created new head" should be shown
strictly also if we are merging two heads without mattering that the
overall count of heads go down by one. Strictly talking we have a "new
head". If the message said "you have one head MORE", then there is no
place for discussion, but semantically and strictly talking you have a
"new head". You also do when you commit in a single timeline "o", "o -
o", "o - o - o"...

However as I said, I'd leave this to the easiest solution, that is the
proposed one on the patch: the overall number of heads should go up by
one when this message is shown, so the user can be sure he has another
head.


Best regards,
Rafael Fernández López.


More information about the Mercurial-devel mailing list