comparison tests/test-py3-commands.t @ 32163: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 dc0da9829c29
comparison
equal deleted inserted replaced
32162:4c49c8601093 32163:e1d1f1bc4a95
170 o changeset: 0:71c96e924262 170 o changeset: 0:71c96e924262
171 user: test 171 user: test
172 date: Thu Jan 01 00:00:00 1970 +0000 172 date: Thu Jan 01 00:00:00 1970 +0000
173 summary: commit performed in Python 3 173 summary: commit performed in Python 3
174 174
175 175 $ hg log -Tjson
176 [
177 {
178 "rev": 1,
179 "node": "e1e9167203d450ca2f558af628955b5f5afd4489",
180 "branch": "default",
181 "phase": "draft",
182 "user": "test",
183 "date": [0, 0],
184 "desc": "message",
185 "bookmarks": [],
186 "tags": ["tip"],
187 "parents": ["71c96e924262969ff0d8d3d695b0f75412ccc3d8"]
188 },
189 {
190 "rev": 0,
191 "node": "71c96e924262969ff0d8d3d695b0f75412ccc3d8",
192 "branch": "default",
193 "phase": "draft",
194 "user": "test",
195 "date": [0, 0],
196 "desc": "commit performed in Python 3",
197 "bookmarks": [],
198 "tags": [],
199 "parents": ["0000000000000000000000000000000000000000"]
200 }
201 ]