Patchwork [2,of,4,V2-SeriesB] clfilter: highlight that hidden filtering is properly working on any commands

login
register
mail settings
Submitter Pierre-Yves David
Date Jan. 8, 2013, 8:10 p.m.
Message ID <6b0c3211fff2cd120d6c.1357675843@yamac.lan>
Download mbox | patch
Permalink /patch/501/
State Accepted
Headers show

Comments

Pierre-Yves David - Jan. 8, 2013, 8:10 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@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.

Patch

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