templates and the log --debug output the extra fields
Uwe Brauer
oub at mat.ucm.es
Mon Jan 4 08:24:47 UTC 2021
>>> "CO" == Craig Ozancin <c.ozancin at gmail.com> writes:
Craig
> Uwe,
> I would be happy to share a couple templates that I have hacked together.
Thanks, I am a bit confused.
I have in my global .hgrc file
[alias]
glg = log -G --style /home/oub/myhgstyle
Where
Myhgstyle
Looks like
changeset = "\x1B[33mchangeset: {rev}:{node|short}\nBranch: {branch}\n{tags}{bookmarks}Author: {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"
That shows active topics but not topics in pulic changesets (as does --debug)
It seems to me that you are only displaying active topics.
I will try out you templates and report back
> The first is called nlog. It is a modified version of the status templates
> with topics added in.
> %include map-cmdline.status
> ltopics = '{if(topics, label('log.topic', 'Topic: {topics}\n'))}'
> [templates]
> # Override base templates
> changeset = '{cset}{branches}{bookmarks}{ltopics}{tags}{parents}{luser}{
> ldate}{summ
> ary}{lfiles}\n'
> changeset_quiet = '{cset}{branches}{bookmarks}{ltopics}{tags}{parents}{luser
> }{ldate
> }{summary}\n'
> changeset_verbose = '{cset}{branches}{bookmarks}{ltopics}{tags}{parents}{
> luser}{lda
> te}{label('log.nlog.description', "Description:\n")}{desc}\n\n{lfiles}\n'
> changeset_debug = '{fullcset}{branches}{bookmarks}{{ltopics
> }tags}{parents}{manifest
> }{luser}{ldate}{extras}{description}{lfiles}\n'
> # Override the file templates
> lfiles = '{if(files,
> label('ui.note log.nlog.files',
> 'Files:\n'))}{lfile_mods}{lfile_adds}{lfile_dels}'
So this is the file
~/.hgtemplates/templates/map-cmdline.nlog?
Thanks and regards
Uwe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5673 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20210104/25f90a0a/attachment.p7s>
More information about the Mercurial
mailing list