repoview: add a subset table
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Mon, 07 Jan 2013 17:16:24 +0100
changeset 18233 59a9f18d4587
parent 18232 dd0b636b0b65
child 18234 a55b06885cda
repoview: add a subset table This will be used by branchmap collaboration. See inline documentation for more details
mercurial/repoview.py
--- a/mercurial/repoview.py	Wed Jan 02 01:40:42 2013 +0100
+++ b/mercurial/repoview.py	Mon Jan 07 17:16:24 2013 +0100
@@ -21,6 +21,13 @@
 
 # function to compute filtered set
 filtertable = {'unserved': computeunserved}
+### Nearest subset relation
+# Nearest subset of filter X is a filter Y so that:
+# * Y is included in X,
+# * X - Y is as small as possible.
+# This create and ordering used for branchmap purpose.
+# the ordering may be partial
+subsettable = {None: 'unserved'}
 
 def filteredrevs(repo, filtername):
     """returns set of filtered revision for this filter name"""