[Bug 6826] New: Show topics in hgweb

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Fri Jun 23 09:12:39 UTC 2023


https://bz.mercurial-scm.org/show_bug.cgi?id=6826

            Bug ID: 6826
           Summary: Show topics in hgweb
           Product: Mercurial
           Version: 6.3.1
          Hardware: PC
                OS: Linux
            Status: UNCONFIRMED
          Severity: feature
          Priority: wish
         Component: evolution
          Assignee: bugzilla at mercurial-scm.org
          Reporter: zash at zash.se
                CC: mercurial-devel at mercurial-scm.org,
                    pierre-yves.david at ens-lyon.org
    Python Version: ---

Topics are currently not show in hgweb. It would be nice if they were, when the
topic extension is enabled.

Currently it seems to be non-trivial to add to a custom theme:

`{topic}` produces the empty string

`{extra.topic}` produces this error:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/mercurial/templateutil.py", line 1128,
in runmember
    return d.getmember(context, mapping, memb)
  File "/usr/lib/python3/dist-packages/mercurial/templateutil.py", line 183, in
getmember
    raise error.ParseError(_(b'%r is not a dictionary') % self._value)
mercurial.error.ParseError: {b'branch': b'default', b'rebase_source':
b'8bd8d9b59169a4a14276012f1f7fa49a2de33d6b', b'topic': b'http-override-cors'}
is not a dictionary

However `{extra|json}` does result in an object containing a 'topic' member, so
the data is there.

evolve 10.5.3
topic 0.24.2

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list