Mercurial / hgweb : How to get latest revision description for each file on browse page?

235 Views Asked by At

I have local repo, and I need to view latest changes description per-file basis via web interface.

Look on examples (folder in Netbeans sources) :

1 - on Netbeans native server

2 - on Bitbucket server

I have "1", but I want "2" (where we can see latest revision desc for each file). So, I try to modify hgweb templates (https://www.mercurial-scm.org/wiki/Theming) to reach this functionality, but in file list page template (manifest) variables to get rev desc not accessible. Only file name / size / permissions etc. available.

What can I do?

1

There are 1 best solutions below

2
djc On

You cannot do this by just modifying templates. You'd have to iterate over the files, looking at the linkrev for the filelog revision referred to by the manifest and get the changeset message from there.