show all bookmarks, not only the active ones, ifeq
Uwe Brauer
oub at mat.ucm.es
Sun Nov 10 21:59:10 UTC 2019
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.
So I thought
log -G --template '\x1B[33mcommit {rev}:{node|short}\nBranch: {branch}\n{ifeq(bookmark,"","","Bookmark: {bookmark}\n")}Author: {author}\nDate: {date|rfc822date}\n{ifeq(topic,"","","\x1B[42mTopic: {topic}\n")}Phase: {phase}\nSummary: {desc|firstline}\n{nofiles}\n'
Would work, but it does not, what do I miss?
Thanks
Uwe Brauer
More information about the Mercurial
mailing list