[PATCH 2 of 2] formatter: lookuptemplate make -Tlist exit without an error

Yuya Nishihara yuya at tcha.org
Fri Dec 11 07:30:47 CST 2015


On Thu, 10 Dec 2015 12:46:00 -0500, timeless wrote:
> If those two are equivalent, we should split them.
> 
> If I'm asking `log -T list`, I'm asking for a list of styles, not a log.
> 
> If I ask for `log -T nosuch`, and nosuch doesn't exist, then that's an error.

It sounds strange to me that "log -T $valid_template" shows log, but
"log -T list" doesn't and both exit with 0. So I consider "list" as the
special style name to error out.


More information about the Mercurial-devel mailing list