Search code examples
mercurialrevision

Mercurial: How to make HG LOG to show trivial parent?


According to HG manual:

By default this command prints revision number and changeset id, tags, non-trivial parents, user, date and time, and a summary for each commit. When the -v/--verbose switch is used, the list of changed files and full commit message are shown.

I have tried hg log -v but still it does not show the trivial parents.


Solution

  • You can use the --debug option.

    $ hg log --template '{parents}\n' --debug
    12:49f2f93d2efdd41c9ffb9dccf4d451e2d8bfbc5f -1:0000000000000000000000000000000000000000 
    7:012b1bb5d99549a5a7c1a280755fa6336c0b472a -1:0000000000000000000000000000000000000000 
    10:d6dc52582cfaa0e8be17a5b9da61b55692353afc 11:8ee9fa792548fc30669a34cf39fcc7185aabaa19 
    8:d589ca45072469148f833f38918861e8de406e64 -1:0000000000000000000000000000000000000000