equal
deleted
inserted
replaced
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() |