hg log: how to show only last comment (tip / last commit / etc / head) changeset

Masklinn masklinn at masklinn.net
Mon Feb 18 07:43:54 CST 2008


On 18 Feb 2008, at 13:55 , Francisco Diaz Trepat - gmail wrote:

> Hi I usually do an hg log command to get messages as follows:
>
> changeset:   74:415ba81ab39a
> tag:             tip
> user:           fdt <fdt at PC-163>
> date:           Mon Feb 18 10:45:58 2008 -0300
> summary:    .hgignore added
>
> With that message I mail some progress on the project.
>
> Small silly question:
>
> Can I do the hg log command that outputs only the top changeset?

"hg tip" and "hg log -l 1" should be able to do that.

And you can add the "-p" option if you want the patch for the changeset.


More information about the Mercurial mailing list