changeset 32212:e1d1f1bc4a95

py3: add test to show 'hg log -Tjson' works
author Pulkit Goyal <7895pulkit@gmail.com>
date Thu, 04 May 2017 04:57:30 +0530
parents 4c49c8601093
children 29e286fa4db0
files tests/test-py3-commands.t
diffstat 1 files changed, 27 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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"]
+   }
+  ]