https://bz.mercurial-scm.org/show_bug.cgi?id=5534
Bug ID: 5534 Summary: Add subscript support to template lists Product: Mercurial Version: default branch Hardware: PC OS: Windows Status: UNCONFIRMED Severity: feature Priority: wish Component: templater Assignee: bugzi...@mercurial-scm.org Reporter: matt_harbi...@yahoo.com CC: mercurial-devel@mercurial-scm.org It would be nice to be able to do something like this to get the last tag in the list, when there are multiple tags on one revision: hg log -r . -T '{latesttag[-1]}' That much is pretty simple, but the [] syntax cries out for dictionary support (even though there's a get() method), and maybe list slicing with [:]. -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel