Mercurial > public > mercurial-scm > hg
diff mercurial/help/scripting.txt @ 41996:77ef3498ceb3
template: add CBOR output format
The whole output is wrapped as an array just like the other serialization
formats. It's an indefinite-length array since the size is unknown while
encoding. Maybe we can add 'cbor-stream' (and 'pickle-stream') as needed.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 10 Mar 2019 12:57:24 +0900 |
parents | c9740b69b9b7 |
children |
line wrap: on
line diff
--- a/mercurial/help/scripting.txt Tue Mar 19 23:00:07 2019 -0700 +++ b/mercurial/help/scripting.txt Sun Mar 10 12:57:24 2019 +0900 @@ -142,9 +142,11 @@ using templates to make your life easier. The ``-T/--template`` argument allows specifying pre-defined styles. -Mercurial ships with the machine-readable styles ``json`` and ``xml``, -which provide JSON and XML output, respectively. These are useful for -producing output that is machine readable as-is. +Mercurial ships with the machine-readable styles ``cbor``, ``json``, +and ``xml``, which provide CBOR, JSON, and XML output, respectively. +These are useful for producing output that is machine readable as-is. + +(Mercurial 5.0 is required for CBOR style.) .. important::