equal
deleted
inserted
replaced
19 return frozenset(repo.revs('hidden() + secret()')) |
19 return frozenset(repo.revs('hidden() + secret()')) |
20 return frozenset() |
20 return frozenset() |
21 |
21 |
22 # function to compute filtered set |
22 # function to compute filtered set |
23 filtertable = {'unserved': computeunserved} |
23 filtertable = {'unserved': computeunserved} |
|
24 ### Nearest subset relation |
|
25 # Nearest subset of filter X is a filter Y so that: |
|
26 # * Y is included in X, |
|
27 # * X - Y is as small as possible. |
|
28 # This create and ordering used for branchmap purpose. |
|
29 # the ordering may be partial |
|
30 subsettable = {None: 'unserved'} |
24 |
31 |
25 def filteredrevs(repo, filtername): |
32 def filteredrevs(repo, filtername): |
26 """returns set of filtered revision for this filter name""" |
33 """returns set of filtered revision for this filter name""" |
27 if filtername not in repo.filteredrevcache: |
34 if filtername not in repo.filteredrevcache: |
28 func = filtertable[filtername] |
35 func = filtertable[filtername] |