templates and the log --debug output the extra fields
Craig Ozancin
c.ozancin at gmail.com
Tue Jan 5 16:49:42 UTC 2021
That is strange. I ran your template and it seems to work for me.
On Tue, Jan 5, 2021 at 1:22 AM Uwe Brauer <oub at mat.ucm.es> wrote:
> >>> "CO" == Craig Ozancin <c.ozancin at gmail.com> writes:
>
>
> > If you want it with color:
> > etopic = '{if(topics, label('log.topic', 'extra:
> topic={topics}\n'))}'
>
> thanks, but it only works for and active topic.
>
> I modified my template:
>
> etopic = '{if(topics, label('log.topic', 'extra:
> topic={topics}\n'))}'
> 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}\n{etopic}\nSummary:
> {desc|firstline}\n{nofiles}\n"
> tag = "tag: {tag}\n"
> bookmark = "bookmark: {bookmark}\n"
>
> Running
>
> Hg log -G --debug --style /home/oub/myhgstyle
>
> Results in
>
> ◍ changeset: 432:cb80c31c1d90
> │ Branch: year-20-21
> │ tag: tip
> │ Author: Uwe Brauer <oub at mat.ucm.es>
> │ Date: Fri, 25 Dec 2020 09:12:30 +0100
> │ Topic: fechas-controles
> │ Phase: draft
> │ extra: topic=fechas-controles
> │
> │ Summary: Also sent to Rebeca
> │
> ○ changeset: 431:ceb486e510e0
> │ Branch: year-20-21
> │ Author: Uwe Brauer <oub at mat.ucm.es>
> │ Date: Sun, 20 Dec 2020 11:01:45 +0100
> │ Phase: public
> │
> │ Summary: Add Files: Overview aulas y dates of the exams.
>
> So change set 431 has no entry. The template has a if(topics) so this is
> to be expected.
>
> I changed it to
>
> etopic = '{label('log.topic', 'extra: topic={topics}\n')}'
>
> But then
> ◍ changeset: 432:cb80c31c1d90
> │ Branch: year-20-21
> │ tag: tip
> │ Author: Uwe Brauer <oub at mat.ucm.es>
> │ Date: Fri, 25 Dec 2020 09:12:30 +0100
> │ Topic: fechas-controles
> │ Phase: draft
> │ extra: topic=fechas-controles
> │
> │ Summary: Also sent to Rebeca
> │
> ○ changeset: 431:ceb486e510e0
> │ Branch: year-20-21
> │ Author: Uwe Brauer <oub at mat.ucm.es>
> │ Date: Sun, 20 Dec 2020 11:01:45 +0100
> │ Phase: public
> │ extra: topic=
> │
>
> The point is I don't know the variable name of the extra field.
>
>
>
>
> _______________________________________________
> 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/20210105/4785dcca/attachment-0002.html>
More information about the Mercurial
mailing list