diff mercurial/repoview.py @ 18233:59a9f18d4587

repoview: add a subset table This will be used by branchmap collaboration. See inline documentation for more details
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Mon, 07 Jan 2013 17:16:24 +0100
parents c0c943ef4e55
children e4687edec014
line wrap: on
line diff
--- 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"""