log template: parents in two lines?

Uwe Brauer oub at mat.ucm.es
Thu May 30 17:09:10 UTC 2024


Rainer,

> Uwe,
> On 2024-05-30 07:19:32 +0200 you wrote:


> You may want to use  "{p1rev}:{p1node|short}" and "{p2ev}:{p2ode|short}"
> instead of just "{parents}".

Thanks! That is almost what I want I have 



#+begin_src 
changeset = "\x1B[33mchangeset:     {rev}:{node|short}\n{tags}{bookmarks}{ifeq(remotenames,"","","\x1B[48mRemote_Branch: {remotenames}\n")}\x1B[38mBranch:        {branch}\nAuthor:        {author}\nDate:          {date|rfc822date}\n{ifeq(topic,"","","\x1B[46mTopic:         {topic}\n")}Phase:         {phase}\n{ifeq(parents,"","","\x1B[47mParent:        {p1rev}:{p1node|short}\n")}{ifeq(parents,"","","\x1B[47mParent:        {p2rev}:{p2node|short}\n")}Summary:       {desc|firstline}\n{nofiles}\n"
#+end_src
which results in 
#+begin_src 
  changeset:     882:f0f1f0f3da79
│  Branch:        default
│  Author:        Uwe Brauer <oub at mat.ucm.es>
│  Date:          Thu, 23 May 2024 08:50:15 +0200
│  Phase:         public
│  Parent:        869:6db054b07546
│  Parent:        -1:000000000000
│  Summary:       Start with Exam May2024
#+end_src

While log -G results in 
#+begin_src 
  changeset:   882:f0f1f0f3da79
│  parent:      869:6db054b07546
│  user:        Uwe Brauer <oub at mat.ucm.es>
│  date:        Thu May 23 08:50:15 2024 +0200
│  summary:     Start with Exam May2024
│
#+end_src

So something in my if is not right, but then that might be just a small
nuisance

Uwe 

> Sincerely,
>   Rainer

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20240530/fc98498f/attachment.html>
-------------- next part --------------


-- 
I strongly condemn Hamas heinous despicable pogroms/atrocities on Israel
I strongly condemn Putin's war of aggression against Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the EU and NATO membership of Ukraine. 

-------------- 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/20240530/fc98498f/attachment.p7s>


More information about the Mercurial mailing list