On Fri, May 31, 2024 at 11:51 AM Uwe Brauer via Mercurial <mercurial@lists.mercurial-scm.org> wrote: > > Hi > > I tried to search the hg repository but I am unable to find the definition of > hg log -G > > My hope is to understand how I should configure the second parent correctly > in the graph > > > Uwe Brauer
The -G option is briefly defined as meaning "show the revision DAG" on the last screen of output of "hg help log". "log -G" is nowadays synonymous with using the (now deprecated) glog extension with no options. It produces a log of changesets, from newest to oldest, with at the left a tree of how they were forked and merged. The other options of the log command apply, for instance -l <number> (this means a lowercase L) to display the <number> latest changesets, or (with the -r option, which can be repeated) a changeset, or several, or a changeset range, to display certain particular changeset(s). In the introductory section of "hg help log" there is a paragraph beginning "With --graph". Read it, --graph and -G are synonymous options for this command. As I suppose you know, each individual changeset (if you mention any) can be mentioned in several ways, including among others a decimal changeset number (increasing by 1 every time a changeset is added), or a 40-nybble hexadecimal changeset ID. The "hg log -G" command will display the changeset(s) you specify, in strict newest-to-oldest sequence. Best regards, Tony. _______________________________________________ Mercurial mailing list Mercurial@lists.mercurial-scm.org https://lists.mercurial-scm.org/mailman/listinfo/mercurial