##// END OF EJS Templates
clfilter: introduce a "unserver" filtering mode...
Pierre-Yves David -
r18102:3c7b67b7 default
parent child Browse files
Show More
@@ -7,9 +7,20 b''
7 # GNU General Public License version 2 or any later version.
7 # GNU General Public License version 2 or any later version.
8
8
9 import copy
9 import copy
10 import phases
11
12 def computeunserved(repo):
13 """compute the set of revision that should be filtered when used a server
14
15 Secret and hidden changeset should not pretend to be here."""
16 assert not repo.changelog.filteredrevs
17 # fast path in simple case to avoid impact of non optimised code
18 if phases.hassecret(repo) or repo.obsstore:
19 return frozenset(repo.revs('hidden() + secret()'))
20 return ()
10
21
11 # function to compute filtered set
22 # function to compute filtered set
12 filtertable = {}
23 filtertable = {'unserved': computeunserved}
13
24
14 def filteredrevs(repo, filtername):
25 def filteredrevs(repo, filtername):
15 """returns set of filtered revision for this filter name"""
26 """returns set of filtered revision for this filter name"""
General Comments 0
You need to be logged in to leave comments. Login now