how can you tell you have merged?

Adrian Buehlmann adrian at cadifra.com
Fri Sep 12 05:07:15 CDT 2008


On 11.09.2008 19:14, Matt Mackall wrote:
> On Thu, 2008-09-11 at 02:15 -0400, Douglas Philips wrote:
>> On or about 2008 Sep 11, at 2:13 AM, Patrick Waugh indited:
>>> hg clone hello my-new-hello
>>> cd my-new-hello
>>> sed -i '/printf/i\\tprintf("once more, hello.\\n");' hello.c
>>> hg commit -m 'A new hello for a new day.'
>>> hg pull ../my-hello
>>> hg merge
>>>
>>> Now, how can you tell that you have done a merge?
>>>
>>> So, since I'm still seeing two heads, how would I know (if I left,
>>> came back and had forgot I had done a merg) that the merge was
>>> complete but that I still needed a commit?
>> hg parents
> 
> There is apparently a large flaw in our documentation such that many
> users are unaware of this essential basic command. It should be one of
> the first concepts they learn. How do we fix it?

I've changed the graphviz graphs on the page UnderstandingMercurial on the wiki
so that the arrows point to the parent(s) (both for working dir and changesets).

After all, the working directory indeed has pointers to its parent changesets
and the same applies to every changeset.

A changeset is also based on its parent changesets.

I believe this gives a very consistent look of the graphs and emphasizes the
parent notion even more.

new version:
http://www.selenic.com/mercurial/wiki/index.cgi/UnderstandingMercurial

previous version:
http://www.selenic.com/mercurial/wiki/index.cgi/UnderstandingMercurial?action=recall&rev=22

(Before people start complaining about the layout: it is very difficult
to fine tune the layout of graphviz graphs.)


More information about the Mercurial mailing list