[PATCH 2 of 4 V2-SeriesB] clfilter: highlight that hidden filtering is properly working on any commands
Pierre-Yves David
pierre-yves.david at ens-lyon.org
Tue Jan 8 20:10:43 UTC 2013
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at logilab.fr>
# Date 1357671773 -3600
# Node ID 6b0c3211fff2cd120d6c5837882b7978ba5b5e2c
# Parent d4e10f74e85ecf9fb2c04fa2f9065b83a1439eaa
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,68 @@ 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
+
+ $ hg heads --hidden
+ changeset: 5:5601fb93a350
+ tag: tip
+ parent: 1:7c3bad9141dc
+ user: test
+ date: Thu Jan 01 00:00:00 1970 +0000
+ summary: add new_3_c
+
+ changeset: 4:ca819180edb9
+ parent: 1:7c3bad9141dc
+ user: test
+ date: Thu Jan 01 00:00:00 1970 +0000
+ summary: add new_2_c
+
+ changeset: 3:cdbce2fbb163
+ parent: 1:7c3bad9141dc
+ user: test
+ date: Thu Jan 01 00:00:00 1970 +0000
+ summary: add new_c
+
+ changeset: 2:245bde4270cd
+ user: test
+ date: Thu Jan 01 00:00:00 1970 +0000
+ summary: add original_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
+
+ $ hg summary --remote --hidden
+ parent: 5:5601fb93a350 tip
+ add new_3_c
+ branch: default
+ commit: (clean)
+ update: 3 new changesets, 4 branch heads (merge)
+ 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