GNU: hg log -G --color=always --style changelog and git log --graph --all --decorate

Uwe Brauer oub at mat.ucm.es
Thu Sep 20 15:02:42 UTC 2018


Hi

In GNU projects, such as Emacs and auctex, one should provide a
ChangeLog entry and then a one line commit summary.

The resulting graph looks with git like:

git log --graph --all --decorate



* commit a7cde0930f57c9cadcc0f1c67b005074c71e8766 (HEAD -> master, origin/master, origin/HEAD)
| Author: Arash Esbati <arash at gnu.org>
| Date:   Fri Sep 7 21:07:09 2018 +0200
|
|     Update style/lettrine.el to package version 2.21
|
|     * style/lettrine.el (LaTeX-lettrine-key-val-options): Delete
|     "Vone" option.
|     ("lettrine"): Delete \LettrineVonefalse macro.
|
* commit 80bcd0a76bd603916c5d8ac4fa3e7134790ae5d5
| Author: Arash Esbati <arash at gnu.org>
| Date:   Sat Aug 25 12:23:17 2018 +0200
|
|     Update style/lettrine.el to package version 2.1
|
|     * style/lettrine.el (LaTeX-lettrine-key-val-options): Add new keys
|     "Vone" and "refstring".
|     ("lettrine"): Add new macros, minor rearrangements.


When I clone that repository (with the hg-git extension) and use 

hg log -G --color=always --style changelog 


I get *almost* the same result

2018-09-07  Arash Esbati  <arash at gnu.org>
@       * style/lettrine.el:
|       Update style/lettrine.el to package version 2.21
|
|       * style/lettrine.el (LaTeX-lettrine-key-val-options): Delete "Vone"
|       option. ("lettrine"): Delete \LettrineVonefalse macro.
|       [ef98c7b46cac] [default/master, tip]
|
2018-08-25  Arash Esbati  <arash at gnu.org>

o       * style/lettrine.el:
|       Update style/lettrine.el to package version 2.1
|
|       * style/lettrine.el (LaTeX-lettrine-key-val-options): Add new keys
|       "Vone" and "refstring". ("lettrine"): Add new macros, minor
|       rearrangements.
|       [f709da10121c]
|


Besides the missing color what annoys me a bit is the line 
*style/lettrine.el: 

at the beginning. Is there any template which would make the output
similar to the one of git?

Regards

Uwe Brauer




More information about the Mercurial mailing list