clfilter: use empty frozenset intead of empty tuple
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Wed, 02 Jan 2013 01:40:06 +0100
changeset 18231 c0c943ef4e55
parent 18230 f5842787a958
child 18232 dd0b636b0b65
clfilter: use empty frozenset intead of empty tuple This will allows set operation needed for cache collaboration.
mercurial/changelog.py
mercurial/repoview.py
--- a/mercurial/changelog.py	Mon Jan 07 02:00:43 2013 +0100
+++ b/mercurial/changelog.py	Wed Jan 02 01:40:06 2013 +0100
@@ -124,7 +124,7 @@
         self._realopener = opener
         self._delayed = False
         self._divert = False
-        self.filteredrevs = ()
+        self.filteredrevs = frozenset()
 
     def tip(self):
         """filtered version of revlog.tip"""
--- a/mercurial/repoview.py	Mon Jan 07 02:00:43 2013 +0100
+++ b/mercurial/repoview.py	Wed Jan 02 01:40:06 2013 +0100
@@ -17,7 +17,7 @@
     # fast path in simple case to avoid impact of non optimised code
     if phases.hassecret(repo) or repo.obsstore:
         return frozenset(repo.revs('hidden() + secret()'))
-    return ()
+    return frozenset()
 
 # function to compute filtered set
 filtertable = {'unserved': computeunserved}