[PATCH 26 of 27 clfilter V2] clfilter: highlight that hidden filtering is properly working on any commands

Pierre-Yves David pierre-yves.david at ens-lyon.org
Mon Oct 8 16:38:17 CDT 2012


# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at logilab.fr>
# Date 1349719902 -7200
# Node ID 5b3266941ea84b316987a351040b3e3651172327
# Parent  7e01da407798085edec102d22961e3bd303b7ee0
clfilter: highlight that hidden filtering is properly working on any commands

We test the behavior of `heads` and `summary` regarding hidden changeset.

diff --git a/tests/test-obsolete.t b/tests/test-obsolete.t
--- a/tests/test-obsolete.t
+++ b/tests/test-obsolete.t
@@ -121,6 +121,31 @@
      summary:     add a
   
 
+check that heads does not report them
+
+  $ hg heads
+  changeset:   5:5601fb93a350
+  tag:         tip
+  parent:      1:7c3bad9141dc
+  user:        test
+  date:        Thu Jan 01 00:00:00 1970 +0000
+  summary:     add new_3_c
+  
+
+
+check that summary does not reports them
+
+  $ hg init ../sink
+  $ echo '[paths]' >> .hg/hgrc
+  $ echo 'default=../sink' >> .hg/hgrc
+  $ hg summary --remote
+  parent: 5:5601fb93a350 tip
+   add new_3_c
+  branch: default
+  commit: (clean)
+  update: (current)
+  remote: 3 outgoing
+
 Check that public changeset are not accounted as obsolete:
 
   $ hg --hidden phase --public 2


More information about the Mercurial-devel mailing list