[PATCH 1 of 2] tests: show that the structure of the more status output looks weird

Yuya Nishihara yuya at tcha.org
Wed Sep 19 14:40:18 UTC 2018


# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1537014527 -32400
#      Sat Sep 15 21:28:47 2018 +0900
# Node ID e65785c1812ec44e5768d79bd0fa47aaeef9d28d
# Parent  0475b8db827e694aae4b5179595c341fda9c8844
tests: show that the structure of the more status output looks weird

Each dict should represent data of the same kind.

diff --git a/tests/test-conflict.t b/tests/test-conflict.t
--- a/tests/test-conflict.t
+++ b/tests/test-conflict.t
@@ -60,6 +60,22 @@
   # To continue:    hg commit
   # To abort:       hg merge --abort
   
+  $ hg status -Tjson
+  [
+   {
+    "path": "a",
+    "status": "M"
+   },
+   {
+    "path": "a.orig",
+    "status": "?"
+   },
+   {
+    "conflictsmsg": "# Unresolved merge conflicts:\n# \n#     a\n# \n# To mark files as resolved:  hg resolve --mark FILE\n",
+    "helpmsg": "# To continue:    hg commit\n# To abort:       hg merge --abort\n",
+    "statemsg": "# The repository is in an unfinished *merge* state.\n"
+   }
+  ]
 
   $ cat a
   Small Mathematical Series.


More information about the Mercurial-devel mailing list