##// END OF EJS Templates
discovery: properly filter changeset in 'peer.known' (issue4982)...
Pierre-Yves David -
r27319:b64b6fdc default
parent child Browse files
Show More
@@ -808,12 +808,13 b' class localrepository(object):'
808 808 return repo[key].branch()
809 809
810 810 def known(self, nodes):
811 nm = self.changelog.nodemap
812 pc = self._phasecache
811 cl = self.changelog
812 nm = cl.nodemap
813 filtered = cl.filteredrevs
813 814 result = []
814 815 for n in nodes:
815 816 r = nm.get(n)
816 resp = not (r is None or pc.phase(self, r) >= phases.secret)
817 resp = not (r is None or r in filtered)
817 818 result.append(resp)
818 819 return result
819 820
@@ -118,19 +118,17 b' server obsoletes the old head'
118 118 $ cd ..
119 119
120 120 client only pulls down 1 changeset
121 ("all local heads known remotely" may change if the wire protocol discovery
122 commands ever stop saying they have hidden changesets)
123 121
124 122 $ cd pull-hidden-common-client
125 123 $ hg pull --debug
126 124 pulling from $TESTTMP/pull-hidden-common (glob)
127 125 query 1; heads
128 126 searching for changes
129 all local heads known remotely
130 3 changesets found
127 taking quick initial sample
128 query 2; still undecided: 2, sample size is: 2
129 2 total queries
130 1 changesets found
131 131 list of changesets:
132 96ee1d7354c4ad7372047672c36a1f561e3a6a4c
133 a33779fdfc23063680fc31e9ff637dff6876d3d2
134 132 bec0734cd68e84477ba7fc1d13e6cff53ab70129
135 133 listing keys for "phase"
136 134 listing keys for "bookmarks"
@@ -141,14 +139,12 b' commands ever stop saying they have hidd'
141 139 bundle2-input-bundle: with-transaction
142 140 bundle2-input-part: "changegroup" (params: 1 mandatory 1 advisory) supported
143 141 adding changesets
144 add changeset 96ee1d7354c4
145 add changeset a33779fdfc23
146 142 add changeset bec0734cd68e
147 143 adding manifests
148 144 adding file changes
149 145 adding foo revisions
150 146 added 1 changesets with 1 changes to 1 files (+1 heads)
151 bundle2-input-part: total payload size 1378
147 bundle2-input-part: total payload size 474
152 148 bundle2-input-part: "listkeys" (params: 1 mandatory) supported
153 149 bundle2-input-part: "listkeys" (params: 1 mandatory) supported
154 150 bundle2-input-bundle: 2 parts total
@@ -745,8 +745,7 b' This test issue 3805'
745 745 $ hg outgoing
746 746 comparing with $TESTTMP/tmpe/repo-issue3805 (glob)
747 747 searching for changes
748 no changes found
749 [1]
748 1:29f0c6921ddd (draft) [tip ] A
750 749
751 750 #if serve
752 751
@@ -760,8 +759,7 b' This test issue 3805'
760 759 $ hg outgoing http://localhost:$HGPORT
761 760 comparing with http://localhost:$HGPORT/
762 761 searching for changes
763 no changes found
764 [1]
762 1:29f0c6921ddd (draft) [tip ] A
765 763
766 764 $ killdaemons.py
767 765
General Comments 0
You need to be logged in to leave comments. Login now