deprecated --style
anatoly techtonik
techtonik at gmail.com
Sun Jul 20 11:20:17 UTC 2014
On Sun, Jul 20, 2014 at 1:59 PM, Yuya Nishihara <yuya at tcha.org> wrote:
> On Sun, 20 Jul 2014 13:49:07 +0300, anatoly techtonik wrote:
>> I could find --style in `hg log -h` output, and found out
>> that it is deprecated.
>>
>> templateopts = [
>> ('', 'style', '',
>> _('display using template map file (DEPRECATED)'), _('STYLE')),
>> ('T', 'template', '',
>> _('display with template'), _('TEMPLATE')),
>> ]
>>
>> How come? Why? It is convenient to have a couple of popular formats.
>
> --style style is superseded by -Tstyle.
>
> http://selenic.com/repo/hg/rev/3a35ba2681ec
> http://selenic.com/repo/hg/rev/870d60294b04
>hg log --style short
abort: style 'short' not found
(available styles: bisect, changelog, compact, default, phases, xml)
>hg log -T short
shortshortshortshortshortshortshortshortshortshortshortshortshortshortshortshortshortshortshortshortshortshortshortshortshortshortshortshortshortshortshortshor
shortshortshortshortshortshortshortshortshortshortshortshortshortshortshortshortshortshortshortshortshortshortshortshortshortshortshortshortshortshortshortshor
shortshortshortshortshortshortshortshortshortshortshortshortshortshortshortshortshortshortshortshortshortshortshortshortshortshortshortshortshortshortshortshor
shortshortshortshortshortshortshortshortshortshortshortshortshort
=/
>hg log -h
...
-T --template TEMPLATE display with template
And where is the list of templates? It was pretty intuitive
previously. How about:
-T --template TEMPLATE use custom or predefined template to format output
(see "hg ????" for a list of predefined ones)
--
anatoly t.
More information about the Mercurial
mailing list