tests/test-evolve-obshistory-fold.t
changeset 5349 e8660b28bfee
parent 5339 258c0a99c5b0
child 5367 cb5983c0287f
--- a/tests/test-evolve-obshistory-fold.t	Thu May 07 01:29:24 2020 +0200
+++ b/tests/test-evolve-obshistory-fold.t	Thu May 07 01:29:48 2020 +0200
@@ -70,7 +70,7 @@
 
 Check that obslog on the first folded revision shows only the revision with the
 target
-  $ hg obslog --hidden 471f378eab4c --patch
+  $ hg obslog --hidden 471f378eab4c --patch --no-origin
   x  471f378eab4c (1) A0
        folded(description, content) as eb5a0daa2192 using fold by test (Thu Jan 01 00:00:00 1970 +0000)
          diff -r 471f378eab4c -r eb5a0daa2192 changeset-description
@@ -88,7 +88,7 @@
   
   
 Check that with all option, all changesets are shown
-  $ hg obslog --hidden --all 471f378eab4c --patch
+  $ hg obslog --hidden --all 471f378eab4c --patch --no-origin
   @    eb5a0daa2192 (3) C0
   |\
   x |  0dec01379d3b (2) B0
@@ -113,13 +113,13 @@
   
 Check that obslog on the second folded revision shows only the revision with
 the target
-  $ hg obslog --hidden 0dec01379d3b --patch
+  $ hg obslog --hidden 0dec01379d3b --patch --no-origin
   x  0dec01379d3b (2) B0
        folded(description, parent, content) as eb5a0daa2192 using fold by test (Thu Jan 01 00:00:00 1970 +0000)
          (No patch available, changesets rebased)
   
 Check that with all option, all changesets are shown
-  $ hg obslog --hidden --all 0dec01379d3b --patch
+  $ hg obslog --hidden --all 0dec01379d3b --patch --no-origin
   @    eb5a0daa2192 (3) C0
   |\
   x |  0dec01379d3b (2) B0
@@ -143,7 +143,7 @@
   
   
 Check that obslog on the successor revision shows a coherent graph
-  $ hg obslog eb5a0daa2192 --patch
+  $ hg obslog eb5a0daa2192 --patch --no-origin
   @    eb5a0daa2192 (3) C0
   |\
   x |  0dec01379d3b (2) B0
@@ -166,7 +166,7 @@
          +B0
   
   
-  $ hg obslog eb5a0daa2192 --no-graph -Tjson | python -m json.tool
+  $ hg obslog eb5a0daa2192 --no-graph --no-origin -Tjson | python -m json.tool
   [
       {
           "markers": [],
@@ -231,6 +231,63 @@
           "shortdescription": "B0"
       }
   ]
+
+  $ hg obslog eb5a0daa2192 --patch
+  @    eb5a0daa2192 (3) C0
+  |\     folded(description, parent, content) from 0dec01379d3b, 471f378eab4c using fold by test (Thu Jan 01 00:00:00 1970 +0000)
+  | |      (No patch available, too many predecessors (2))
+  | |
+  x |  0dec01379d3b (2) B0
+   /
+  x  471f378eab4c (1) A0
+  
+  $ hg obslog eb5a0daa2192 --no-graph -Tjson | python -m json.tool
+  [
+      {
+          "markers": [
+              {
+                  "dates": [
+                      [
+                          *, (glob)
+                          0
+                      ],
+                      [
+                          *, (glob)
+                          0
+                      ]
+                  ],
+                  "effects": [
+                      "description",
+                      "parent",
+                      "content"
+                  ],
+                  "operations": [
+                      "fold"
+                  ],
+                  "prednodes": [
+                      "0dec01379d3be6318c470ead31b1fe7ae7cb53d5",
+                      "471f378eab4c5e25f6c77f785b27c936efb22874"
+                  ],
+                  "users": [
+                      "test"
+                  ],
+                  "verb": "folded"
+              }
+          ],
+          "node": "eb5a0daa21923bbf8caeb2c42085b9e463861fd0",
+          "shortdescription": "C0"
+      },
+      {
+          "markers": [],
+          "node": "471f378eab4c5e25f6c77f785b27c936efb22874",
+          "shortdescription": "A0"
+      },
+      {
+          "markers": [],
+          "node": "0dec01379d3be6318c470ead31b1fe7ae7cb53d5",
+          "shortdescription": "B0"
+      }
+  ]
   $ hg update 471f378eab4c
   abort: hidden revision '471f378eab4c' was rewritten as: eb5a0daa2192!
   (use --hidden to access hidden revisions)
@@ -255,7 +312,7 @@
 Check output of the server
 --------------------------
 
-  $ hg obslog -R $TESTTMP/server --patch tip --all
+  $ hg obslog -R $TESTTMP/server --all --patch tip --no-origin
   o    eb5a0daa2192 (2) C0
   |\
   x |  0dec01379d3b
@@ -278,7 +335,7 @@
          +B0
   
   
-  $ hg obslog -R $TESTTMP/server -f --all --patch tip
+  $ hg obslog -R $TESTTMP/server -f --all --patch tip --no-origin
   o  eb5a0daa2192 (2) C0
   |
   x  471f378eab4c (1) A0
@@ -298,7 +355,7 @@
   
   
 
-  $ hg obslog -R $TESTTMP/server --all --patch 471f378eab4c --hidden
+  $ hg obslog -R $TESTTMP/server --all --patch 471f378eab4c --no-origin --hidden
   o    eb5a0daa2192 (2) C0
   |\
   x |  0dec01379d3b
@@ -321,7 +378,7 @@
          +B0
   
   
-  $ hg obslog -R $TESTTMP/server -f --all --patch 471f378eab4c --hidden
+  $ hg obslog -R $TESTTMP/server -f --all --patch 471f378eab4c --no-origin --hidden
   o  eb5a0daa2192 (2) C0
   |
   x  471f378eab4c (1) A0