diff tests/test-log.t @ 24602:201caa10536b

jsonchangeset: set rev and node to "null" for workingctx
author Yuya Nishihara <yuya@tcha.org>
date Sat, 14 Mar 2015 20:15:40 +0900
parents e191d5d8d515
children e74f819e9160
line wrap: on
line diff
--- a/tests/test-log.t	Fri Apr 03 21:36:39 2015 +0900
+++ b/tests/test-log.t	Sat Mar 14 20:15:40 2015 +0900
@@ -1642,6 +1642,30 @@
   date:        [A-Za-z0-9:+ ]+ (re)
   extra:       branch=default
   
+  $ hg log -r 'wdir()' -Tjson
+  [
+   {
+    "rev": null,
+    "node": null,
+    "branch": "default",
+    "phase": "draft",
+    "user": "test",
+    "date": [*, 0], (glob)
+    "desc": "",
+    "bookmarks": [],
+    "tags": ["tip"],
+    "parents": ["65624cd9070a035fa7191a54f2b8af39f16b0c08"]
+   }
+  ]
+
+  $ hg log -r 'wdir()' -Tjson -q
+  [
+   {
+    "rev": null,
+    "node": null
+   }
+  ]
+
 Check that adding an arbitrary name shows up in log automatically
 
   $ cat > ../names.py <<EOF