Mercurial > public > mercurial-scm > hg
diff tests/test-encoding.t @ 22429:7a7eed5176a4
commands: add hidden -T option for files/manifest/status/tags
These commands have generic formatting support but no way to enable it
yet. When this feature is more fully developed, this flag will be unhidden.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 15 Sep 2014 13:15:07 -0500 |
parents | 5e276d1d504a |
children | 67b6b82a6bbe |
line wrap: on
line diff
--- a/tests/test-encoding.t Fri Sep 12 18:29:29 2014 -0500 +++ b/tests/test-encoding.t Mon Sep 15 13:15:07 2014 -0500 @@ -179,6 +179,24 @@ tip 5:a52c0692f24a \xc3\xa9 3:ca661e7520de (esc) +hg tags (JSON) + + $ hg tags -Tjson + [ + { + "id": "a52c0692f24a", + "rev": 5, + "tag": "tip", + "type": "" + }, + { + "id": "ca661e7520de", + "rev": 3, + "tag": "\xc3\xa9", (esc) + "type": "" + } + ] + hg branches (ascii) $ HGENCODING=ascii hg branches