py3: add test to show 'hg log -Tjson' works
authorPulkit Goyal <7895pulkit@gmail.com>
Thu, 04 May 2017 04:57:30 +0530
changeset 32163 e1d1f1bc4a95
parent 32162 4c49c8601093
child 32164 29e286fa4db0
py3: add test to show 'hg log -Tjson' works
tests/test-py3-commands.t
--- a/tests/test-py3-commands.t	Thu May 04 04:52:03 2017 +0530
+++ b/tests/test-py3-commands.t	Thu May 04 04:57:30 2017 +0530
@@ -172,4 +172,30 @@
      date:        Thu Jan 01 00:00:00 1970 +0000
      summary:     commit performed in Python 3
   
-
+  $ hg log -Tjson
+  [
+   {
+    "rev": 1,
+    "node": "e1e9167203d450ca2f558af628955b5f5afd4489",
+    "branch": "default",
+    "phase": "draft",
+    "user": "test",
+    "date": [0, 0],
+    "desc": "message",
+    "bookmarks": [],
+    "tags": ["tip"],
+    "parents": ["71c96e924262969ff0d8d3d695b0f75412ccc3d8"]
+   },
+   {
+    "rev": 0,
+    "node": "71c96e924262969ff0d8d3d695b0f75412ccc3d8",
+    "branch": "default",
+    "phase": "draft",
+    "user": "test",
+    "date": [0, 0],
+    "desc": "commit performed in Python 3",
+    "bookmarks": [],
+    "tags": [],
+    "parents": ["0000000000000000000000000000000000000000"]
+   }
+  ]