diff tests/test-subrepo.t @ 32584:746e12a767b3

cat: add formatter support This is an example showing how formatter can handle the --output option. git subrepo isn't supported for now.
author Yuya Nishihara <yuya@tcha.org>
date Thu, 25 May 2017 21:53:44 +0900
parents 3433bf56b768
children bcb6684d144b
line wrap: on
line diff
--- a/tests/test-subrepo.t	Sat May 27 17:58:36 2017 +0900
+++ b/tests/test-subrepo.t	Thu May 25 21:53:44 2017 +0900
@@ -1020,6 +1020,14 @@
   $ hg cat sub/repo/foo
   test
   test
+  $ hg cat sub/repo/foo -Tjson
+  [
+   {
+    "abspath": "foo",
+    "data": "test\ntest\n",
+    "path": "sub/repo/foo" (glob)
+   }
+  ]
   $ mkdir -p tmp/sub/repo
   $ hg cat -r 0 --output tmp/%p_p sub/repo/foo
   $ cat tmp/sub/repo/foo_p