Mercurial > hg-stable
changeset 18231:c0c943ef4e55
clfilter: use empty frozenset intead of empty tuple
This will allows set operation needed for cache collaboration.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Wed, 02 Jan 2013 01:40:06 +0100 |
parents | f5842787a958 |
children | dd0b636b0b65 |
files | mercurial/changelog.py mercurial/repoview.py |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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}