[SOLVED] (was: show all bookmarks, not only the active ones, ifeq)
Uwe Brauer
oub at mat.ucm.es
Thu Nov 14 16:41:30 UTC 2019
>>> "UB" == Uwe Brauer <oub at mat.ucm.es> writes:
> Hi
> The following
> log -G --template '\x1B[33mcommit {rev}:{node|short}\nBranch:
> {branch}\n{ifeq(activebookmark,"","","Bookmark:
> {activebookmark}\n")}Author: {author}\nDate:
> {date|rfc822date}\n{ifeq(topic,"","","\x1B[42mTopic:
> {topic}\n")}Phase: {phase}\nSummary: {desc|firstline}\n{nofiles}\n'
> Does almost everything I want, however I just realised that the ifeq
> only shows active bookmarks, as the activebookmark would suggest, while
> hg log -G
> Shows all bookmarks even non active ones.
I solved it using the following style file
changeset = "\x1B[33mcommit: {rev}:{node|short}\nBranch: {branch}\n{tags}{bookmarks}user: {author}\nDate: {date|rfc822date}\n{ifeq(topic,"","","\x1B[42mTopic: {topic}\n")}Phase: {phase}\nsummary: {desc|firstline}\n{nofiles}\n"
tag = "tag: {tag}\n"
bookmark = "bookmark: {bookmark}\n"
And
Hg log -G --style /home/oub/myhgstyle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5025 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20191114/b6576d55/attachment.p7s>
More information about the Mercurial
mailing list