obslog: check filtered output with splitted changesets
authorBoris Feld <boris.feld@octobus.net>
Fri, 25 May 2018 16:50:04 +0200
changeset 3896 7b782e419df7
parent 3895 8c368720f010
child 3897 83e8803e1cf1
obslog: check filtered output with splitted changesets
tests/test-evolve-obshistory-split.t
--- a/tests/test-evolve-obshistory-split.t	Fri May 25 11:52:48 2018 +0200
+++ b/tests/test-evolve-obshistory-split.t	Fri May 25 16:50:04 2018 +0200
@@ -13,8 +13,10 @@
 ----------
 
   $ hg init $TESTTMP/local-split
+  $ hg init $TESTTMP/server
   $ cd $TESTTMP/local-split
   $ mkcommit ROOT
+  $ sync
   $ echo 42 >> a
   $ echo 43 >> b
   $ hg commit -A -m "A0"
@@ -67,6 +69,8 @@
   
   no more change to split
 
+  $ sync
+
   $ hg log --hidden -G
   @  changeset:   3:f257fde29c7a
   |  tag:         tip
@@ -91,8 +95,8 @@
      date:        Thu Jan 01 00:00:00 1970 +0000
      summary:     ROOT
   
-Actual test
------------
+Check output on the client side
+-------------------------------
 
 Check that debugobshistory on splitted commit show both targets
   $ hg obslog 471597cad322 --hidden --patch
@@ -204,3 +208,46 @@
   (hidden revision '471597cad322' was split as: 337fec4d2edc, f257fde29c7a)
   working directory parent is obsolete! (471597cad322)
   (use 'hg evolve' to update to its tipmost successor: 337fec4d2edc, f257fde29c7a)
+
+Check output on the server side
+-------------------------------
+
+  $ hg obslog -R $TESTTMP/server --patch tip
+  o  f257fde29c7a (2) A0
+  |
+  x  471597cad322
+       rewritten(parent, content) as 337fec4d2edc, f257fde29c7a using split by test (Thu Jan 01 00:00:00 1970 +0000)
+         note: testing split
+         (No patch available, context is not local)
+  
+  $ hg obslog -R $TESTTMP/server -f --patch tip
+  o  f257fde29c7a (2) A0
+  
+  $ hg obslog -R $TESTTMP/server --all --patch tip
+  o  337fec4d2edc (1) A0
+  |
+  | o  f257fde29c7a (2) A0
+  |/
+  x  471597cad322
+       rewritten(parent, content) as 337fec4d2edc, f257fde29c7a using split by test (Thu Jan 01 00:00:00 1970 +0000)
+         note: testing split
+         (No patch available, context is not local)
+  
+  $ hg obslog -R $TESTTMP/server --all -f --patch tip
+  o  337fec4d2edc (1) A0
+  
+  o  f257fde29c7a (2) A0
+  
+  $ hg obslog -R $TESTTMP/server --no-graph -f --all --patch tip
+  f257fde29c7a (2) A0
+  471597cad322
+    rewritten(parent, content) as 337fec4d2edc, f257fde29c7a using split by test (Thu Jan 01 00:00:00 1970 +0000)
+      note: testing split
+      (No patch available, context is not local)
+
+  $ hg obslog -R $TESTTMP/server --no-graph -f --all --patch tip
+  f257fde29c7a (2) A0
+  471597cad322
+    rewritten(parent, content) as 337fec4d2edc, f257fde29c7a using split by test (Thu Jan 01 00:00:00 1970 +0000)
+      note: testing split
+      (No patch available, context is not local)