Discussion:
GNU: hg log -G --color=always --style changelog and git log --graph --all --decorate
Uwe Brauer
2018-09-20 15:02:42 UTC
Permalink
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 <***@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 <***@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 <***@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 <***@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
Uwe Brauer
2018-09-20 15:12:05 UTC
Permalink
Post by Uwe Brauer
Hi
hg log -G --color=always --style changelog
Sigh, I asked that question and lost the answer, sorry

hg log -G --color=always --template "commit {node}\nAuthor: {author}\nDate: {date|rfc822date}\n\n{desc}\n{nofiles}\n"

Does what want besides the missing colors.


Any idea why --color=always does not work


Uwe Brauer
Uwe Brauer
2018-09-20 15:23:33 UTC
Permalink
Post by Uwe Brauer
Post by Uwe Brauer
Hi
hg log -G --color=always --style changelog
Sigh, I asked that question and lost the answer, sorry
hg log -G --color=always --template "commit {node}\nAuthor: {author}\nDate: {date|rfc822date}\n\n{desc}\n{nofiles}\n"
Does what want besides the missing colors.
Any idea why --color=always does not work
hg log -G --template "\x1B[33mcommit {node}\nAuthor: {author}\nDate: {date|rfc822date}\n\n{desc}\n{nofiles}\n"


Is what I was looking for!

Loading...