comparison mercurial/fancyopts.py @ 25511:c2a4dfe2a336

formatter: move most of template option helper to formatter We want to share this function between formatter and cmdutils. It doesn't belong in templater because it imports knowledge of ui layers that shouldn't be there. We'd prefer cmdutil to layer on the formatter rather than vice-versa. Since the formatter is the handler for -T options for all non-log commands, let's move the helper there. We leave the bits specific to the old --style option behind.
author Matt Mackall <mpm@selenic.com>
date Wed, 10 Jun 2015 14:29:13 -0500
parents 753af9ee7c81
children 69e8384a436c
comparison
equal deleted inserted replaced
25510:dd511b5cb818 25511:c2a4dfe2a336