mercurial/scmutil.py
changeset 48724 c7e675848027
parent 48687 f8f2ecdde4b5
child 48875 6000f5b25c9b
equal deleted inserted replaced
48723:27fe84a8dd60 48724:c7e675848027
   364     cl = repo.changelog
   364     cl = repo.changelog
   365     if needobsolete:
   365     if needobsolete:
   366         obsrevs = obsolete.getrevs(repo, b'obsolete')
   366         obsrevs = obsolete.getrevs(repo, b'obsolete')
   367         if not cl.filteredrevs and not obsrevs:
   367         if not cl.filteredrevs and not obsrevs:
   368             return None
   368             return None
   369         # TODO: obsrevs should be a frozenset, but right now obsolete.getrevs()
   369         key = (maxrev, hash(cl.filteredrevs), hash(obsrevs))
   370         # may return a set, which is not a hashable type.
       
   371         key = (maxrev, hash(cl.filteredrevs), hash(frozenset(obsrevs)))
       
   372     else:
   370     else:
   373         if not cl.filteredrevs:
   371         if not cl.filteredrevs:
   374             return None
   372             return None
   375         key = maxrev
   373         key = maxrev
   376         obsrevs = frozenset()
   374         obsrevs = frozenset()