changeset 3895:8c368720f010

obslog: check filtered output with pruned changesets
author Boris Feld <boris.feld@octobus.net>
date Fri, 25 May 2018 11:52:48 +0200
parents 7c624b45fe60
children 7b782e419df7
files tests/test-evolve-obshistory-prune.t
diffstat 1 files changed, 15 insertions(+), 19 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-evolve-obshistory-prune.t	Tue May 22 16:48:35 2018 +0200
+++ b/tests/test-evolve-obshistory-prune.t	Fri May 25 11:52:48 2018 +0200
@@ -6,34 +6,19 @@
 
   $ . $TESTDIR/testlib/obshistory_setup.sh
 
-Test simple common cases
-========================
-
-Test setup
-----------
-  $ hg init $TESTTMP/simple
-  $ cd $TESTTMP/simple
-
-Actual test
------------
-  $ hg obslog -ap null
-  @  000000000000 (-1)
-  
-  $ hg obslog 'wdir()'
-  abort: working directory revision cannot be specified
-  [255]
-
 Test output with pruned commit
 ==============================
 
-Test setup
-----------
+Check output on the client side
+-------------------------------
 
   $ hg init $TESTTMP/local-prune
+  $ hg init $TESTTMP/server
   $ cd $TESTTMP/local-prune
   $ mkcommit ROOT
   $ mkcommit A0 # 0
   $ mkcommit B0 # 1
+  $ sync
   $ hg log --hidden -G
   @  changeset:   2:0dec01379d3b
   |  tag:         tip
@@ -55,6 +40,7 @@
   0 files updated, 0 files merged, 1 files removed, 0 files unresolved
   working directory now at 471f378eab4c
   1 changesets pruned
+  $ sync
   $ hg log --hidden -G
   x  changeset:   2:0dec01379d3b
   |  tag:         tip
@@ -125,3 +111,13 @@
   (hidden revision '0dec01379d3b' is pruned)
   working directory parent is obsolete! (0dec01379d3b)
   (use 'hg evolve' to update to its parent successor)
+
+Check output on the server side
+-------------------------------
+
+  $ hg obslog -f -R $TESTTMP/server --patch 0dec01379d3b --hidden
+  x  0dec01379d3b (2) B0
+       pruned using prune by test (at Thu Jan 01 00:00:00 1970 +0000)
+         (No patch available, no successors)
+  
+# TODO ADD amend + prune