Patchwork [10,of,10] py3: add test to show 'hg log -Tjson' works

login
register
mail settings
Submitter Pulkit Goyal
Date May 4, 2017, 10:46 p.m.
Message ID <ba999657de69dfc1143d.1493938015@pulkit-goyal>
Download mbox | patch
Permalink /patch/20449/
State Accepted
Headers show

Comments

Pulkit Goyal - May 4, 2017, 10:46 p.m.
# HG changeset patch
# User Pulkit Goyal <7895pulkit@gmail.com>
# Date 1493854050 -19800
#      Thu May 04 04:57:30 2017 +0530
# Node ID ba999657de69dfc1143dd53ec47cc9c43ccff9a4
# Parent  36c3d95af47b1bda9719f390b29dd0680241b108
py3: add test to show 'hg log -Tjson' works

Patch

diff -r 36c3d95af47b -r ba999657de69 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"]
+   }
+  ]