##// END OF EJS Templates
templatekw: export ui.paths as {peerpaths}...
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.

File last commit:

r14516:842a9179 default
r33414:16ed6716 default
Show More
test-ui-color.py.out
5 lines | 55 B | text/plain | TextLexer
/ tests / test-ui-color.py.out
warning
error
'buffered\n'
colored? True
colored? True