diff tests/test-acl.t @ 33414:16ed67164002

templatekw: export ui.paths as {peerpaths} It's sometimes useful to show hyperlinks in log output. "{get(peerpaths, "default")}/rev/{node}" Since each path may have sub options, "{peerpaths}" is structured as a dict of dicts, but the inner dict is rendered as if it were a string URL. The implementation is ad-hoc, so there are some weird behaviors described in the test. We might need to introduce a proper way of handling a hybrid scalar object. This patch adds _hybrid.__getitem__() so d['path']['url'] works. The keyword is named as "peerpaths" since "paths" seemed too generic in log context.
author Yuya Nishihara <yuya@tcha.org>
date Thu, 13 Jul 2017 00:35:54 +0900
parents 560ceb654180
children 5fc4ddfbe626 82c39a8ec3b1
line wrap: on
line diff