[PATCH 2 of 4 Series-B] clfilter: highlight that hidden filtering is properly working on any commands
pierre-yves.david at logilab.fr
pierre-yves.david at logilab.fr
Tue Jan 8 13:04:26 UTC 2013
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at logilab.fr>
# Date 1354629301 -3600
# Node ID 9816b18216e8ee835bdf6b5cff3145b625865748
# Parent a342ff119d504e34d22c5ad52a172d6addf121db
clfilter: highlight that hidden filtering is properly working on any commands
Now that hidden changeset are filtered for all 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
@@ -126,10 +126,35 @@ Check that graphlog detect that a change
user: test
date: Thu Jan 01 00:00:00 1970 +0000
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
$ hg --config 'extensions.graphlog=' glog
@ changeset: 5:5601fb93a350
More information about the Mercurial-devel
mailing list