templates and the log --debug output the extra fields
Craig Ozancin
c.ozancin at gmail.com
Tue Jan 5 06:13:32 UTC 2021
If you want it with color:
etopic = '{if(topics, label('log.topic', 'extra: topic={topics}\n'))}'
On Mon, Jan 4, 2021 at 11:05 PM Craig Ozancin <c.ozancin at gmail.com> wrote:
> Btw,
>
> If you are looking for how to do just the extras topic, this works for me.
>
> extratopic = '{if(topics, 'extra: topic={topics}\n')}'
>
>
> On Mon, Jan 4, 2021 at 11:03 PM Craig Ozancin <c.ozancin at gmail.com> wrote:
>
>> I accidently added of typo when I sent it. Here is an updated version. I
>> never use the --debug so I missed it.
>>
>> %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}{summary}{lfiles}\n'
>>
>> changeset_quiet =
>> '{cset}{branches}{bookmarks}{ltopics}{tags}{parents}{luser}{ldate}{summary}\n'
>>
>> changeset_verbose =
>> '{cset}{branches}{bookmarks}{ltopics}{tags}{parents}{luser}{ldate}{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}'
>>
>> Cheers., Craig
>>
>> On Mon, Jan 4, 2021 at 1:51 PM Uwe Brauer <oub at mat.ucm.es> wrote:
>>
>>> >>> "CO" == Craig Ozancin <c.ozancin at gmail.com> writes:
>>>
>>> > Uwe,
>>> > I would be happy to share a couple templates that I have hacked
>>> together.
>>>
>>> It seems not to work, what I want to have
>>>
>>> I saved you nlog file as a text file and run it with
>>>
>>> log -G --style /home/oub/nlog
>>>
>>> It does not show me all the topics as
>>>
>>> hg log -G --debug
>>>
>>> Does
>>>
>>> changeset: 432:cb80c31c1d905f4f5e94957b7c9b1f9f17e8b566
>>> │ branch: year-20-21
>>> │ tag: tip
>>> │ topic: fechas-controles
>>> │ phase: draft
>>> │ parent: 431:ceb486e510e0a490b8d3e20260c21683c5b1e726
>>> │ parent: -1:0000000000000000000000000000000000000000
>>> │ manifest: 417:cc0fb0f5e65d48e54b640dc9fcd046a171889358
>>> │ user: Uwe Brauer <oub at mat.ucm.es>
>>> │ date: Fri Dec 25 09:12:30 2020 +0100
>>> │ files: aulas-controles.org
>>> │ extra: branch=year-20-21
>>> │ extra: topic=fechas-controles
>>> │ description:
>>> │ Also sent to Rebeca
>>> │
>>> │
>>> ○ changeset: 431:ceb486e510e0a490b8d3e20260c21683c5b1e726
>>> │ branch: year-20-21
>>> │ remote branch: default/year-20-21
>>> │ phase: public
>>> │ parent: 426:3c3bbee6cd3570b0589e4421a3d056402f361f53
>>> │ parent: -1:0000000000000000000000000000000000000000
>>> │ manifest: 416:61df1683a1a3ee9c7b53284e373cb0aa8c4399ee
>>> │ user: Uwe Brauer <oub at mat.ucm.es>
>>> │ date: Sun Dec 20 11:01:45 2020 +0100
>>> │ files+: aulas-controles.md aulas-controles.org makepkg.sh
>>> │ extra: branch=year-20-21
>>> │ extra: topic=fechas-controles
>>> │ description:
>>> │ Add Files: Overview aulas y dates of the exams.
>>>
>>>
>>> So in change set 431 there is no active topic, since it is a public
>>> change set.
>>>
>>> I can see it however in the extra fields.
>>>
>>> In principle I don't need the two parent fields, the manifest and the
>>> files+ fields, but I would like to have the extra fields colored.
>>>
>>> How can I achieve that?
>>>
>>> Regards
>>>
>>> Uwe
>>> _______________________________________________
>>> Mercurial mailing list
>>> Mercurial at mercurial-scm.org
>>> https://www.mercurial-scm.org/mailman/listinfo/mercurial
>>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20210104/f8520966/attachment-0002.html>
More information about the Mercurial
mailing list